I am trying to open a new window using the window.open() function in javascript. The source file in this function is a .php file.
The window.open() function opens a new window but fails at the <?php tag in the .php file. it just opens a blank window.
I tried putting the same <?php tag in a html file and tried to open the html file in a new window using the window.open() this worked fine.
In the .html file I have the following javascript to open a new window on top with a .php file as the target content. When I view the source on the new window, I can see the code failing at the <?php tag (...line shown with 5 stars)
------html file has this code
var win2 = window.open("../../../cgi-bin/cal_test4.php","Window2","status,height=500,width=500,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
-------PHP file contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<? *****
require("calmonth.php");
?>
<title>DetroitCircle.com</title>