Jump to content

Opening 2 new windows


kamal213

Recommended Posts

Hi guys,

 

The javascript code below is meant to open two new windows on submit.

 

Its does so no problems on all browser apart from internet explore 9 for so reason. I'm I using a deprecated function? please help.

 

Thanks

 

<script>
 function popup(popupType) {
  window.open("<?php echo 'doc_print.php' ?>");
  window.open("<?php echo 'doc_installation.php' ?>");
 }
</script>
<form enctype="multipart/form-data" name="form1"  method="POST" action="<?php echo 'gps_datahold.php' ?>" onsubmit="popup()">
Comment:<textarea name="g_comment" rows="3" cols="20"></textarea>
</form>

Link to comment
https://forums.phpfreaks.com/topic/274433-opening-2-new-windows/
Share on other sites

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.