Page 1 of 1

Openning a new windows

Posted: Fri Sep 09, 2005 3:14 pm
by schneiderj
Hello !

I would like to open from my php code a popup windows to show some important information. I would like to do that with PHP. Is that possible ?

Thank for your help,
Jean-Marie

Posted: Fri Sep 09, 2005 3:17 pm
by Burrito
Moved to client side:

no it's not possible with php, you can send info down to the client which will open a new window with JS, but the server can not open a new window for you.

Code: Select all

<script>
var newWin = window.open('pagename.php','page','width=400,height=400');
newWin.focus();
</script>

Posted: Fri Sep 09, 2005 3:26 pm
by schneiderj
Thank you for your very fast answer !
I will do by script

Jean-Marie