Click to See Complete Forum and Search --> : 2 links in a list/menu select option


fspaiva
10-30-2003, 10:25 AM
Hi,

How do I do a list/menu select that when the user selects, for example, the "A" option, open A.html popup window without the scroll-bar and at the same time, the current page open select.htm ?

<select name="select">
<option>A</option>
<option>B</option>
<option>C</option>
</select>

requestcode
10-30-2003, 11:39 AM
Here is an example of one way you can do it:
<html>
<head>
<title>Drop Down Test</title>
<script language="javascript">
function LinkUp(linkid)
{
NewWin=window.open(linkid,"newwin",config="width=200,height=250,location=no,status=no,directories=no,toolbar=no,scrollbars=no,menubar=no,resiza ble=no,top=30,left=30");
}
</script>
</head>
<body bgcolor="lightblue" onload="document.DropDown.reset()">
<form name="DropDown">
<select name="DDlinks" onchange="LinkUp(this.options[this.selectedIndex].value)" >
<option selected>Select One
<option value="a.html"> a</option>
<option value="b.html">b</option>
<option value="c.html"> c</option>
</select>
</form>
</body>
</html>