I'm trying to insert a simple link to point to the top of a page. I've tried creating a link to #top which works nicely in IE6 but not in Opera. As Opera's my preferred browser, I'd really like to get this working. Anyone got any tips?
BlobFisk
1:14 pm on Nov 18, 2003 (gmt 0)
Welcome to WebmasterWorld, custardcrumble!
Strange one - I've never had any cross browser problems with this... Does you code look like this:
At the top of the page:
<a name="top"></a>
At the end of the page:
<a href="#top" title="Top of the Page">Top of Page</a>
custardcrumble
1:20 pm on Nov 18, 2003 (gmt 0)
That's what I thought I had but I've just viewed source and can't see the anchor at the top of the page. I'll have a look at home to check the original code. If it's not there, why does it work in IE?!
BlobFisk
1:23 pm on Nov 18, 2003 (gmt 0)
Not sure - perhaps IE recognises the #top to mean the top of the page, even if the named anchor is not present....
photon
1:56 pm on Nov 18, 2003 (gmt 0)
If IE can't find an anchor, it defaults to the top of the page.