body - on load- open two windows???

liunx

Guest
Hi<br />
<br />
I have three windows by name win1, win2, win3 (100X 100).<br />
<br />
When I load a web page I should be able to automatically pop up these windows. Is it possible if I use window.open...<br />
in on load event of body tag??? ie, can I use window.open more than once in onload event of body tag???<br />
<br />
shara<!--content-->Sure, try this:<br />
<br />
<script type="text/javascript"><br />
function openWins() {<br />
window.open("win1.htm","winname","width=100,height=100");<br />
window.open("win2.htm","win2name","width=100,height=100");<br />
window.open("win3.htm","win3name","width=100,height=100");<br />
}<br />
</script><br />
</head><br />
<body onload="openWins();"><!--content-->Thanks<br />
<br />
shara:D<!--content-->You're welcome... :)<!--content-->
 
Back
Top