Re: js, printing and redirection

From: Date: Wed, 12 Nov 2003 22:49:01 +0000
Subject: Re: js, printing and redirection
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-169388@lists.php.net to get a copy of this message
El Mié 12 Nov 2003 19:36, Marek Kilimajer escribió: > Martin Marques wrote: > > I need to print a page and redirect the browser to another page. As it > > can't be done with PHP, I thought about using javascript. Can anyone give > > me an advise on how to do it? > > You are right, and that means you should ask on javascript list. But > here you have it anyway: > > <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). -- 19:47:01 up 22 days, 3:09, 4 users, load average: 0.35, 0.62, 0.62 ----------------------------------------------------------------- Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar' Centro de Telematica | DBA, Programador, Administrador Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.general (#169388) next »