Hello,
I am trying to open a delayed popup from a parent popup.
Say a page index loads. While body onload it opens a popup A.
After a delay i would like a popup B to show up.
The setTimeout i am using is mixed with another center window Js function, and this is my problem: i don't know how to proper insert the setTimeout in my center window script without having syntax script problems.
If anyone could give me a push on this below:
********** here is my center window script:*****************
<SCRIPT LANGUAGE="JavaScript">
<!--
var exwin=null;
function Warning (theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"
{
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
if(exwin!=null)exwin.close();
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
//-->
</SCRIPT>
********************** In my body *********************
onLoad=" javascript:Warning('warning.htm','warning','','200','200','true')............
*********************The delay function*******************
setTimeout('??????????????()',40000)
With the position script and the onload it works, but where should i put the delay ??
If anyone can help.
Thanks for your incomming messages.
Hablablow
I am trying to open a delayed popup from a parent popup.
Say a page index loads. While body onload it opens a popup A.
After a delay i would like a popup B to show up.
The setTimeout i am using is mixed with another center window Js function, and this is my problem: i don't know how to proper insert the setTimeout in my center window script without having syntax script problems.
If anyone could give me a push on this below:
********** here is my center window script:*****************
<SCRIPT LANGUAGE="JavaScript">
<!--
var exwin=null;
function Warning (theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
if(exwin!=null)exwin.close();
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
//-->
</SCRIPT>
********************** In my body *********************
onLoad=" javascript:Warning('warning.htm','warning','','200','200','true')............
*********************The delay function*******************
setTimeout('??????????????()',40000)
With the position script and the onload it works, but where should i put the delay ??
If anyone can help.
Thanks for your incomming messages.
Hablablow