This pop-up window code works very well, but it’s a bit complicated! Please take a closer look!
There are three pages involved here:
Pop-up window page: 1.htm page where the pop-up window code is placed
Middle page: 2.htm middle transition page
Pop-up page: 3.htm.
The code to be popped up in 1.htm is as follows: mainly to force the pop-up of 2.htm through the dialog box, with a size of 0,0
CODE:
<script language="javascript">
focusid=setTimeout("focus();window.showModelessDialog('2.htm','','scroll:1;status:1;help:1;toolbar=1;resizable:1;dialogWidth:0px;dialogHeight:0px ')",3000)
</script>
Place the code in 2.htm as follows: automatically close the dialog page 2.htm and pop up the window 3.htm at the same time
CODE:
<script language="javascript">
<!--
function openWindow2(URL,Name,features) { //v2.0
window.open(URL,Name,features);}
openWindow2('3.htm','pop','resizable,height=600,width=1024,toolbar,menubar,scrollbars,location,left=0,top=0');
//-->
setTimeout('window.close();', 0);
</script>
Place code in 3.htm:
CODE will be automatically minimized after pop-up:
Add in the body tag: <body onload="min.Click()">
The following code is added to the <body></body> area
<object id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Minimize">
</object> <object id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Maximize">
</object>