G
Guest
I am a web developer and I have a new problem with IE6. I suspect it is the
result of some recent upgrades.
I have a parent window with a form. There is a javascript function on this
page that opens a new window and submits the contents of the form to the new
window. This USED to work just fine, but now it is opening two windows. I
have not modified my code, that is why I suspect a new some upgrade to be
causing the problem.
I am posting the code below. If anyone has any ideas please let me know.
Thanks
Lisa
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<script language="JavaScript">
<!--
function OpenWindow(winURL, winName)
{
newWind = window.open(winURL, winName,
"menubar=no,resizable=yes,navigation=no,scrollbars=yes,height=400
width=550,left=50,top=200");
newWind.focus();
document.thisForm.target = winName;
document.thisForm.action = winURL;
document.thisForm.submit();
}
//-->
</script>
<form name="thisForm" method="post" action="">
<p>Val 1
<input type="text" name="textfield">
</p>
<p>Val 2
<input type="text" name="textfield2">
</p>
<p> <a href="#" onClick="OpenWindow('newwindow.cfm','test');">Click me to
submit</a></p>
</form>
</body>
</html>
result of some recent upgrades.
I have a parent window with a form. There is a javascript function on this
page that opens a new window and submits the contents of the form to the new
window. This USED to work just fine, but now it is opening two windows. I
have not modified my code, that is why I suspect a new some upgrade to be
causing the problem.
I am posting the code below. If anyone has any ideas please let me know.
Thanks
Lisa
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<script language="JavaScript">
<!--
function OpenWindow(winURL, winName)
{
newWind = window.open(winURL, winName,
"menubar=no,resizable=yes,navigation=no,scrollbars=yes,height=400
width=550,left=50,top=200");
newWind.focus();
document.thisForm.target = winName;
document.thisForm.action = winURL;
document.thisForm.submit();
}
//-->
</script>
<form name="thisForm" method="post" action="">
<p>Val 1
<input type="text" name="textfield">
</p>
<p>Val 2
<input type="text" name="textfield2">
</p>
<p> <a href="#" onClick="OpenWindow('newwindow.cfm','test');">Click me to
submit</a></p>
</form>
</body>
</html>