javscript:点击下拉框跳转功能

javscript:点击下拉框跳转功能

<select id="myweb" onChange="window.open(this.options[selectedIndex].value)">
<option value='http://www.163.com'>http://www.163.com</option>
<option value='http://www.google.com'>http://www.google.com</option>
</select>
name:<input type=text value="" onChange="myweb.options[myweb.selectedIndex].text=this.value">
link:<input type=text value="" onChange="myweb.options[myweb.selectedIndex].value=this.value">
<input type=text value="" onChange="myweb.options[myweb.selectedIndex].value=this.value">

你可能感兴趣的:(javscript:点击下拉框跳转功能)