How do you get php to open a new window or past data to javascript and have javascript open a new window?
Thanks in advance.
Maybe something like this?
<? $file = "file.html"; ?> <script language="javascript"> window.open('<?= $file ?>', '',''); </script>
Diego
for example you want to open a window after closing this window
php :
<body onUnload="delete_last_file()"> <?php $filename = "yourfile.php" ; print ("<script language=\"JavaScript\" type=\"text/javascript\"> function delete_last_file() { window.open (\"$filename\") ; } </script> ") ; ?>
thanks Hodjat and diego25. It worked.