Jump to content

Can someone translate this snippet for me?


dastaten

Recommended Posts

I have a bit of javascript that I need to run in a php file.  Can someone tell me the code to do this in php?

 

<SCRIPT type="text/javascript">

if (confirm("Sign in to Instant Messenger? (Be sure to disable pop-up blocker)") )

{

newwindow=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'); if (window.focus) {newwindow.focus()};

}

</SCRIPT>

 

I just opens an alert box and if "Ok" is clicked, opens another small window with specific attributes.

 

Any help is greatly appreciated.

 

Thanks,

DAStaten

echo "<SCRIPT type=\"text/javascript\">
if (confirm(\"Sign in to Instant Messenger? (Be sure to disable pop-up blocker)\") )
{
newwindow=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'); if (window.focus) {newwindow.focus()};
}
</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.