Jump to content

[SOLVED] I'm a noob. How do I open this new window with php?


dastaten

Recommended Posts

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.

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>";

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.