[PHP] Re: popup window under php
Thank you all very much! Tim Sawyer wrote: > I want to open a popup window under php control. So lets say I have an > if statement which if true opens the window. > > if ($something) { >JavaScript:window.open("test.php",blah...); > } > > Guess I'm saying that I want to call a Javascript function without the > user clicking on anything. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: popup window under php
You could also wait for the page to load and then invoke the JS by putting an onLoad="function_name()" in the 'BODY' tag of the document. On 10/4/2001 3:58 PM this was written: > [EMAIL PROTECTED] (Tim Sawyer) wrote: > >> I want to open a popup window under php control. So lets say I have an >> if statement which if true opens the window. >> >> if ($something) { >> JavaScript:window.open("test.php",blah...); >> } >> >> Guess I'm saying that I want to call a Javascript function without the >> user clicking on anything. > > you need to put tha javascript in
[PHP] Re: popup window under php
[EMAIL PROTECTED] (Tim Sawyer) wrote: > I want to open a popup window under php control. So lets say I have an > if statement which if true opens the window. > > if ($something) { > JavaScript:window.open("test.php",blah...); >} > > Guess I'm saying that I want to call a Javascript function without the > user clicking on anything. you need to put tha javascript in