The Popup Menu Script - Doc JavaScript

The Popup Menu Script

Front Page Scripts

The script simply loads a given URL. The form consists of a menu and a button, which invokes the script's function with the value of the selected option as an argument.

<SCRIPT LANGUAGE="JavaScript">
<!--
// Copyright (c) 2000 internet.com Corp. 
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.
function loadScript(str) {
  location.href = str;
}
// -->
</SCRIPT>
<FORM>
<TABLE CELLPADDING="4"
       CELLSPACING="0"
       WIDTH="182"
       BORDER="0">
<TR><TD ALIGN="center" BGCOLOR="#006699">
<FONT FACE="Arial,Helvetica" SIZE="-1" COLOR="#ffffff">
Front Page Scripts
</FONT>
</TD></TR>
<TR><TD ALIGN="center" BGCOLOR="#00ccff">
<SELECT NAME="script">
<OPTION VALUE="/js/email.html">E-mail Validation
<OPTION VALUE="/js/menu.html">This Popup Menu
<OPTION VALUE="/js/thermometer.html">Thermometer Rollover
</SELECT><BR>
<INPUT TYPE="button"
       VALUE="load page"
       onClick="loadScript(this.form.script.options[this.form.script.selectedIndex].value)">
</TD></TR>
</TABLE>
</FORM>

http://www.internet.com

Created: October 23, 1997
Revised: December 16, 1997
URL: http://www.webreference.com/js/menu.html