Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pop up window delay

Status
Not open for further replies.

stan8450

Programmer
May 3, 2002
16
CA
I have a pop up window and would like to put a delay on it so the pop up window doesn't load until the index page does.

here is my code so far

<script language=&quot;javascript&quot;>

<!--
window.open('URL,'Shortcut','alwaysRaised=yes,resizable=no,scrollbars=no,width=330,height=210,left=230,top=200,screenX= 100,screenY=100')
// -->

</script>


thanx
 
hi stan8450,

wrap it in a function and call it with body onload:

<head>
<script language=&quot;javascript&quot;>
<!--
function init(URL) {
var myWin = window.open(URL,'Shortcut','alwaysRaised=yes,resizable=no,scrollbars=no,width=330,height=210,left=230,top=200,screenX= 100,screenY=100');
}
//-->
</script>
</head>
<body onload=&quot;init();&quot;> ======================================

if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top