|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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:;. Can some one please help me in resolving this issue. Thanking all in advance.
__________________
-------------------------------------------------------------------------------------- Dubai Property, Article Directory International Property, |
|
#2
|
|||
|
|||
|
Perhaps make use of anchor links, eg:
Code:
<a href="#anchor">Link Text</a><a name="anchor"></a>.... It does beg the question, what are you trying to do to need this without javascript? Ordinarily, you'd find a hashed link used in conjunction with a javascript function. I can't think of any reasons to use it on its own.
__________________
On-Page SEO -- An Introductory Guide New to SEO? SEOChat SEO FAQs Forum Rules and Posting Guidelines URL canonicalization code solutions |
|
#3
|
|||
|
|||
|
Anchor links are links to named anchor points on the page (eg top, bottom, section-2).
Why would you establish a link to nowhere and then click it to stay where you were? Why would you click it full stop? It goes to the top of the page because it can't find any point named # on your page. If you wish to click the link and go to where you already are, then first you have to create a named anchor point next to it. eg <a name="top"> or <a name="section-2"> and then use that name in the <a href="#top"> EDIT Snap! Simultaneous typing of replies. Last edited by dr john : January 8th, 2008 at 05:30 AM. |
|
#4
|
|||
|
|||
|
I want to develop a control for my site just like the control given on www.msn.com. 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.
Last edited by Aami : January 8th, 2008 at 07:02 AM. |
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
Quote:
href="#" onclick="return false" this should work |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > Use of # (Hash) Symbol in a hyper link |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|