Why doesn't this script work in Internet explorer but in Mozilla firefox it work fine
In exploer I only got the 'bye now' message when I push the send button.
Please HELP!!!!
http://medlem.spray.se/carro82/open.php
[code]
//Open.php
<?
include ("window.php");
?>
<?php
echo "<form>
<input type=\"button\" name=\"submit\" value=\"Open window\" onclick=\"WinOpen()\">
</form>";
?>
<script language="JavaScript">
var msg=null;
function WinOpen() {
msg=open("","displayWindow","toolbar=no,directorie s=no,menubar=no,width=600, height=600 resizable=yes" );
if(msg == null)
alert('Popup was blocked');
msg.document.write("<HEAD><TITLE>Window!</TITLE></HEAD>");
msg.document.write("<html><head><title>Window</title>");
msg.document.write("<meta http-equiv='Content-Type' content='text/html' charset=iso-8859-1'>");
msg.document.write("</head>");
msg.document.write("<frameset rows='*' cols='65%,35%' framespacing='1' frameborder='1' border='1' >");
msg.document.write("<frame src='file1.php' name='bottomFrame' scrolling='NO' resizable=yes >");
msg.document.write("<frame src='file2.php' name='bottomFrame' scrolling='AUTO' resizable=yes ></frameset");
msg.document.write("<noframes><body></body></noframes></html>");
}
</script>
//file1.php
<html>
<head>
<meta http-equiv="refresh" content="2"; URL="file1.php">
<?php
echo "frame1";
?>
</head>
</html>
//file2.php
<html>
<head>
<body onunload="alert('bye now!');">
<form method="post" action="file2.php">
<textarea name="meddelande" cols="30" rows="7" scrolling="NO" noresize>