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.

Link to comment
Share on other sites

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

 

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.