Jump web front-end HTML drop-down menu

The main function of the following examples are: the option to select the pull-down menu to jump to the corresponding page.

1) Code Example:

<the SELECT onChange = "window.location = this.value;"> 
<the Option Val ue = "" the Selected> Choose </ option> // This is the first option in the menu
<the Option value = "HTTP: // baidu.com "> Baidu </ the option> // this is the second menu option
<option value =" js3.html "> users </ option> // this is the third option in the menu
</ select >
It is noteworthy that the first item in the menu item is not as select jump.

Guess you like

Origin www.cnblogs.com/maye123/p/10993933.html