dastaten Posted June 9, 2008 Share Posted June 9, 2008 I have a javascript that opens a window with specific parameters. However, I for a php page to open it. I had a post similar to this, in case you read it. I don't need the original alert box anymore, I just want the page to open the window. Is this possible or can the php only write the code to the page? The problem is the page that runs never does display. It's a member.php page that just logs the user in and then redirects them to the index page. So writing the window.open script to the page doesn't help. Here is the javascript... <script type="text/javascript"> window.open('php121/php121im.php','name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no'); </script> Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/109358-solved-im-a-noob-how-do-i-open-this-new-window-with-php/ Share on other sites More sharing options...
dastaten Posted June 9, 2008 Author Share Posted June 9, 2008 Never mind. I just read that new windows cannot be opened server side... Quote Link to comment https://forums.phpfreaks.com/topic/109358-solved-im-a-noob-how-do-i-open-this-new-window-with-php/#findComment-560910 Share on other sites More sharing options...
hansford Posted June 9, 2008 Share Posted June 9, 2008 anything is possible. <?php echo "<script type='text/javascript'>"; echo "window.open('php121/php121im.php','name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no');"; echo "</script>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/109358-solved-im-a-noob-how-do-i-open-this-new-window-with-php/#findComment-560988 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.