Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1216 How can a link in one frame relocate the page in another frame to the top of the page?

irt.org | Knowledge Base | JavaScript | Frame | Q1216 [ previous next ]

Q1216 How can a link in one frame relocate the page in another frame to the top of the page?

If all pages ever to be in the main frame come from the same server as the page in this frame then:

<a href="javascript:;" onClick="if (window.scrollTo) top.Main.scrollTo(0,0); return false">Back to top</a>

The above has been reported not to work in Internet Explorer 4 :-/

Feedback on 'Q1216 How can a link in one frame relocate the page in another frame to the top of the page?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.