Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Frame | Q1216 [ previous next ]

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?'

©2018 Martin Webb