Forum Moderators: open

Message Too Old, No Replies

Internal page links in Opera

Opera links

         

custardcrumble

12:14 pm on Nov 18, 2003 (gmt 0)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



If IE can't find an anchor, it defaults to the top of the page.

custardcrumble

2:01 pm on Nov 18, 2003 (gmt 0)

10+ Year Member



Ah, makes sense. Thanks to you both

:)