Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Use of # (Hash) Symbol in a hyper link
Old 01-08-2008, 08:35 AM Use of # (Hash) Symbol in a hyper link
aamikhan's Avatar
Junior Talker

Posts: 1
Name: Imran Zaheer
Trades: 0
Hello All

I am having some problems with my anchor links. I am using the following code <a href="#">Link Title</a>. The problem I am facing is that When I Click the link, I am directed to the top of the page. But What I want is to stay where I was before clicking on the link. I know that use of javascript:; (like <a href="javascript:;">Link Title</a>) can solve this problem for me, but I want this to be done by using # symbol and not javascript:;.

If you view the home page of www.msn.com, and look at the different sections like MSNBC News, FOX Sports, etc., you would find two links for displaying show more headlines, and show fewer headlines (+ and -). All these link are linked to a url http://www.msn.com/#. I want to know that how this can be done. Can you please explain.

Can some one please help me in resolving this issue. Thanking all in advance.
__________________
Free Submit your article and press release in my
Please login or register to view this content. Registration is FREE
aamikhan is offline
Reply With Quote
View Public Profile Visit aamikhan's homepage!
 
 
Register now for full access!
Old 01-08-2008, 09:51 AM Re: Use of # (Hash) Symbol in a hyper link
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Unless you've got the anchor set to go to #top, then the page should not jump when you click an empty link, nothing should happen at all.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-08-2008, 09:55 AM Re: Use of # (Hash) Symbol in a hyper link
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
Looks like the page is powered by aspx?
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 01-08-2008, 04:22 PM Re: Use of # (Hash) Symbol in a hyper link
gooor's Avatar
Average Talker

Posts: 16
Name: Marcin
Location: Poland
Trades: 0
I'm not sure but this can make it work:
<a href="#" onclick="return 0;">Link Title</a>

Or something like this. I can't check it now but this can be some hint anyway
__________________
Visit
Please login or register to view this content. Registration is FREE
for my Portfolio
-------------------------------------

Please login or register to view this content. Registration is FREE
gooor is offline
Reply With Quote
View Public Profile Visit gooor's homepage!
 
Old 01-08-2008, 05:14 PM Re: Use of # (Hash) Symbol in a hyper link
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
<a href="#sectionName">Jump down in this page</a>

blah blah blah

<a name="#sectionName">Here we are!</a>

------------------------------------------------------------------------


<a href="domain.com/folder/page.html#sectionName">A spot on another page</a>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 01-08-2008, 05:17 PM Re: Use of # (Hash) Symbol in a hyper link
Jdinh04's Avatar
Super Talker

Posts: 140
Name: Johnny Dinh
Location: East Lansing, MI
Trades: 0
Are you talking about like on FAQ pages where they have links of questions and when you click on them it brings you to that certain section of the page?
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 01-09-2008, 09:51 AM Re: Use of # (Hash) Symbol in a hyper link
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
I think he means if you click the small + symbols on msn.com it dynamically changes the amount of links that are shown it that particular box...
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Use of # (Hash) Symbol in a hyper link
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62155 seconds with 12 queries