Hi
can anyone show me how to open multiple popup window
using myWin.open() in both IE5&N4. This is how I want
it to work. I have a select box which will allow my user
to select multiple sites. After the selection,
I want to popup those sites base upon their preference.
However, when i select, let say 2 sites, my program
will popup six sites which is the same amount of sites
in my select box and that's not what i want.
This is the code i been working with:
<html>
<head><title>Assignment#5</title>
<script language="JavaScript">
<!--
function go()
{
var myCars=window.document.myForm.mySites
for (var i=0 ; i < myCars.length ; i++)
{
if (myCars.options.selected)
URL= "[j].value;
var myWind=open(URL,'goCars','height=400,width=400,toolbar=no')
myWind.focus()
}
}
//-->
</script>
</head>
<body bgColor=lightblue>
<form name='myForm'>
<select name='mySites' multiple size=5 >
<option value=' BMW </option>
<option value=' Volkswagen </option>
<option value=' Ford </option>
<option value=' Honda </option>
<option value=' Volvo </option>
</select>
<br>
<input type=button value='show selected' onclick='go()'>
</form>
</body>
</html>
can anyone show me how to open multiple popup window
using myWin.open() in both IE5&N4. This is how I want
it to work. I have a select box which will allow my user
to select multiple sites. After the selection,
I want to popup those sites base upon their preference.
However, when i select, let say 2 sites, my program
will popup six sites which is the same amount of sites
in my select box and that's not what i want.
This is the code i been working with:
<html>
<head><title>Assignment#5</title>
<script language="JavaScript">
<!--
function go()
{
var myCars=window.document.myForm.mySites
for (var i=0 ; i < myCars.length ; i++)
{
if (myCars.options.selected)
URL= "[j].value;
var myWind=open(URL,'goCars','height=400,width=400,toolbar=no')
myWind.focus()
}
}
//-->
</script>
</head>
<body bgColor=lightblue>
<form name='myForm'>
<select name='mySites' multiple size=5 >
<option value=' BMW </option>
<option value=' Volkswagen </option>
<option value=' Ford </option>
<option value=' Honda </option>
<option value=' Volvo </option>
</select>
<br>
<input type=button value='show selected' onclick='go()'>
</form>
</body>
</html>