function in a script on Microsoft Internet
Explorer version 6.0, the return value of
is
always set to UNDEFINED (NULL). This problem does not occur with earlier
versions of Internet Explorer.
<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>