<html> <body onload='(parent || opener).childLoad()'> <div style='height:500px; background:yellow'> <a id='#top'>Top of the page</a> </div> <div id='bottom'> <a id='#bottom'>Bottom of the page</a> </div> </body> </html>