471,603 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

Help using anchor tags in the same page

http://www.shaneregister.com/listings.asp#15

The following page has anchor tags setup that will link you to the listing. This works fine in firefox. In IE it does not work at all. You can veiw source to see the code. Any help would be appreciated.

Thanks
Nov 19 '07 #1
2 1521
http://www.shaneregister.com/listings.asp#15

The following page has anchor tags setup that will link you to the listing. This works fine in firefox. In IE it does not work at all. You can veiw source to see the code. Any help would be appreciated.

Thanks

Ok i was able to fix it

It turns out that although all browsers SHOULD be able to find an anchor tag like <a name="top"></a>, some (meaning IE) can't find it if it's empty like that (no character content between the tags).

So I changed it to <a name="top>&nbsp;</a> with a non-breaking space between the tags, and it's working now. BTW, "name" and "id" are both valid...

but I did change it to ID
Nov 19 '07 #2
Death Slaught
1,137 1GB
Why would you expect it to work. The pupose of an anchor is to provide a link for the user, and in your case a link to the top of something. It makes no sense to not provide something for the user to click. Also why are you using a non-breaking space? Your users won't be able to see it therefor it will have no purpose.

Thanks, Death
Nov 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by yawnmoth | last post: by
1 post views Thread by Jack Fox | last post: by
5 posts views Thread by Lucky | last post: by
3 posts views Thread by Rob | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.