Article ID: 327315 - Last Review: November 29, 2007 - Revision: 4.7 Return Value of ShowModalDialog Is Always Set to UNDEFINED for the About: Protocol In Internet Explorer 6.0This article was previously published under Q327315 SYMPTOMS When you use the About: Protocol with the
ShowModalDialog function in a script on Microsoft Internet
Explorer version 6.0, the return value of ShowModalDialog is
always set to UNDEFINED (NULL). This problem does not occur with earlier
versions of Internet Explorer. To reproduce this issue, create the following HTM page : <html>
<body>
<SCRIPT>
function MyMsgBox()
{
url='about:<html><body onload="window.returnValue =true">test</body></html>';
var result = window.showModalDialog (url);
alert (result);
}
</SCRIPT>
<body onload="MyMsgBox()">
test
</body>
</html>WORKAROUND To work around this behavior, you can do the following:
STATUSMicrosoft has confirmed that
this is a problem in Microsoft Internet Explorer 6.0.
| Article Translations
|
Back to the top
