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 strongm 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 on Page-load?

Status
Not open for further replies.

tyleri

Programmer
Jan 2, 2001
173
US
when someone loads up my site, I want a smaller window to pop up automatically at page-loadup with the size 350x350?

I know it's in the <body onload=&quot; ... but i don't have a clue what do put in there, or write javascript somehow and reference the script in the onload=&quot; function. any ideas!?
 
use:

<BODY onload=&quot;openNewWindow();&quot;>

to call the function...

<HEAD>
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow()
{
var newWindow=window.open(&quot;new.htm&quot;, &quot;newWin&quot;, &quot;width=350, height=350&quot;);
}
</SCRIPT>
</HEAD>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top