Welcome to WebmasterWorld Guest from 54.242.115.55

Forum Moderators: open

Message Too Old, No Replies

Internal page links in Opera

Opera links

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

New User

10+ Year Member

joined:Nov 18, 2003
posts:3
votes: 0


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?
1:14 pm on Nov 18, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 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>
1:20 pm on Nov 18, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 18, 2003
posts:3
votes: 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?!
1:23 pm on Nov 18, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
posts:3185
votes: 0


Not sure - perhaps IE recognises the #top to mean the top of the page, even if the named anchor is not present....
1:56 pm on Nov 18, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 13, 2002
posts:818
votes: 0


If IE can't find an anchor, it defaults to the top of the page.
2:01 pm on Nov 18, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 18, 2003
posts:3
votes: 0


Ah, makes sense. Thanks to you both

:)