Hi all,
Suppose, i access the website(Main window), the site will load. Meantime,i want to open a new window (Child window -like a pop up) on the top of the main window. Now,the browser focus on the child window.In the mean time the main window will disable.
Please find below the following code. Its everything works fine. But, suppose the user enable the pop up blocker, the child window blocked. But my requirement is, the main window disable, the child window must open when the popup blocker turned on.
<HTML>
<HEAD>
<script>
function modalWin() {
if (window.showModalDialog) { window.showModalDialog("christmas.swf","name","dialogWidth:918px;dialogHeight:500px");
} else {
window.open('christmas.swf','name','height=500,width=918,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
}
}
</script>
</HEAD>
<body onLoad="modalWin();">
This is Test!!
</BODY>
</HTML>
Thanks!