May 26, 200719 yr Any browser I've tried will scroll to the top of a page when you click on a link which links to # as in href="#". Expect Opera. What's the deal with that?
May 26, 200719 yr unless specified, # reloads the page hence why it goes back to the top, why opera doesn't do it, no idea... Anyway, I don't advise using # as a back to top link... Oli
May 27, 200719 yr Author unless specified, # reloads the page hence why it goes back to the top, why opera doesn't do it, no idea...Anyway, I don't advise using # as a back to top link... Oli Nopes. It doesn't reload the page. It just scrolls to the top. At least in IE and Firefox.
May 27, 200719 yr I use <a href="#header">Back to top</a> Where "#header" is the same name as the top DIV on your page in your CSS. The "#" works as a quirk, and isn't a proper way of linking to the top! Plus AFAIK this method is the most accessible, and likely to work in every browser.
Create an account or sign in to comment