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

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

Reply via email to