Click to See Complete Forum and Search --> : body - on load- open two windows???


shanuragu
07-22-2003, 10:50 PM
Hi

I have three windows by name win1, win2, win3 (100X 100).

When I load a web page I should be able to automatically pop up these windows. Is it possible if I use window.open...
in on load event of body tag??? ie, can I use window.open more than once in onload event of body tag???

shara

pyro
07-22-2003, 10:58 PM
Sure, try this:

<script type="text/javascript">
function openWins() {
window.open("win1.htm","winname","width=100,height=100");
window.open("win2.htm","win2name","width=100,height=100");
window.open("win3.htm","win3name","width=100,height=100");
}
</script>
</head>
<body onload="openWins();">

shanuragu
07-23-2003, 01:56 AM
Thanks

shara:D

pyro
07-23-2003, 06:56 AM
You're welcome... :)