Select and Popup

This script is almost identical to the Select and Go script, but it opens the address in a new popup window. You can set the new window to have a height, width, etc. or just leave it to open as a normal new window.

<html>
<head>
<title>Select and Popup</title>
<script language="JavaScript">
<!--
function openPop(form) {
var url=(form.dir.options[form.dir.selectedIndex].value);
myWindow = window.open(url, 'myWindow', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no,width=500,height=400');
}
// -->
</script>
</head>
<body>
<form name="myform">
<div align="center"><p><select name="dir" size="1">
<option value="">Choose a Site</option>
<option value="http://www.yahoo.com/">Yahoo!</option>
<option value="http://www.excite.com/">Excite</option>
</select><input type="button" name="button" value="Go!" onclick="openPop(this.form);"></p>
</div>
</form>
etc...

Notes:

  1. Change the URLs in the script to your desired addresses.
  2. You can have as many selections as you want by simply copying the code.
  3. The new popup window can be configured as you want. By removing one or all of attributes like 'toolbar' you can change how the new window will appear.
  4. To ensure the code is copied correctly, please click here.

See it in action.