Re: js, printing and redirection

From: Date: Wed, 12 Nov 2003 23:01:26 +0000
Subject: Re: js, printing and redirection
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-169393@lists.php.net to get a copy of this message
El Mié 12 Nov 2003 19:59, Marek Kilimajer escribió: > Martin Marques wrote: > >><script> > >>function printAndRedirect() { > >> print(); > >> location="someotherscript.php"; > >>} > >></script> > > > > Yes, I already have this. > > My problem is that I want to make it work on the event "Onload" (when the > > page ends loading, execute the JS function). > > And what is so difficult about it? Little JS formation? :-) > <body onload="printAndRedirect();"> Thanks, that's what I was looking for. I sometimes used OnSubmit, but didn't know about OnLoad. :-( Note to myself: Buy a good JS book! -- 20:00:01 up 22 days, 3:22, 4 users, load average: 0.30, 0.69, 0.65 ----------------------------------------------------------------- Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar' Centro de Telematica | DBA, Programador, Administrador Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.general (#169393) next »