123456789
11-17-2004, 06:12 PM
How come this doesn't loop three times?
<html><head>
<script language="javascript" type="text/javascript">
function popup()
{
for (var i=0; i < 3; i++ )
{
window.open('http://www.google.com','name','height=400,width=500');
}
}
</script>
</head>
<body>
<a href="javascript:popup();">Generate!</a>
</body>
</html>
<html><head>
<script language="javascript" type="text/javascript">
function popup()
{
for (var i=0; i < 3; i++ )
{
window.open('http://www.google.com','name','height=400,width=500');
}
}
</script>
</head>
<body>
<a href="javascript:popup();">Generate!</a>
</body>
</html>