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
-----------------------------------------------------------------

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to