in reply to Anchor CGI output
The idea is emit a page that includes an anchor at the bottom. Along the way we emir an onLoad handler that forces the document's location to that anchor.
The fragment below works on IE. To work on Netscape requires adding some browser detection logic.
#!/usr/bin/perl print <<START; Content-type: text/html <html> <head> <title>test</title> <script language="JavaScript"> function scrollDown() { top.location = "#end" // document.URL = "#end" for Netscape } </script> </head> <body onLoad="scrollDown()"> START print "stuff<br>\n" for ( 1 .. 100 ); print <<FINISH; <a name="end">End </body> </html> FINISH
|
|---|