Hello,
I need an advice on how to add "Go to top" link on the bottom of the page, but only when the page is longer than the browser window size.
The algorithm would be:
- check the page height
- calculate the footer and header height
- compare the sizes
- find last element before footer (e.g. by id)
- insert link to #top-menu
(Assuming pure JavaScript, working in IE6 too. I don't want to use any JS library.)