in reply to Anchor CGI output

Here's a quick-and-very-dirty demo of how to cause scrolling once a page has loaded. If you don't like JavaScript, avert your eyes now.

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