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 <script> tags and just echo it all > in the if block. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- 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]