Re: js, printing and redirection

From: Date: Wed, 12 Nov 2003 22:36:40 +0000
Subject: Re: js, printing and redirection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169383@lists.php.net to get a copy of this message
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>

« previous php.general (#169383) next »