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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Body OnLoad 1

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US

[tt] How can I modify my code below to make this pop-up window delay a few seconds after the main page loads?

<BODY onload=&quot;window.open('Page.asp','','toolbar=no,directories=no,status=no, scrollbar=no, width=320,height=320,left = 220, top =220')&quot;>

[tt]&quot;A Successful man is one who can build a firm foundation with the bricks that others throw at him&quot;[/tt]
[noevil]
 
<script language=&quot;JavaScript&quot;>
<!--

function win_open() {
window.open('Page.asp','','toolbar=no,directories=no,status=no, scrollbar=no, width=320,height=320,left = 220, top =220');
}

function now() {

setTimeout(&quot;win_open()&quot;, 1000);

}

now();

//-->
</script>

<BODY> My Work...
...and More...
 
Perfect!! Thank you very much. [thumbsup2]
[tt]&quot;A Successful man is one who can build a firm foundation with the bricks that others throw at him&quot;[/tt]
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top