SPUG: Re: CGI.pm and browser redirection

Lorraine Johnson lorraine at nw.saic.com
Fri Jun 16 12:09:25 CDT 2000


At 08:10 PM 6/12/00 -0700, Kevin Fink wrote:
>...
>The only other option I could think of was to look into JavaScript, which
>might be able to detect the end of the data stream and respond by
>redirecting to a new page.  I don't know much about JS, though.

There's an onLoad event handler you put in the body tag.  The referenced
function executes after the page loads (text and graphics in, applets and
plugins started).  The function itself goes inside the head tags and can
reset the location.  If you want to add a delay, there's a timer you can
set.  Danny Goodman's "JavaScript Bible" is pretty much the standard
reference for JavaScript, but I found Nick Heinle's "Designing with
JavaScript" to be very readable.  (Okay, okay, it's actually fun to read -
for a computer book!)

Cheers,

Lorraine

...................................
J. Lorraine Johnson
SAIC/Sea Technology
lorraine at nw.saic.com
v: (425) 482-3316
f: (425) 485-5566
http://www.nw.saic.com

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 For Subscriptions, Email to majordomo at pm.org:  ACTION  spug-list  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email address





More information about the spug-list mailing list