<select onchange="test()">
<options value="1.htm">aaa
<options value="2.htm">bbb
</select>
<iframe name="frm" src="1.htm"></iframe><script>
function test(){frm..location.href=event.srcElement.options[event.srcElement.selectedIndex].value;}
</script>
<options value="1.htm">aaa
<options value="2.htm">bbb
</select>
<iframe name="frm" src="1.htm"></iframe><script>
function test(){frm..location.href=event.srcElement.options[event.srcElement.selectedIndex].value;}
</script>
解决方案 »
- 怎么把div中的内容显示在EXT panel中的html中
- 急,如何在HTML中通过JS实现文件下载,在线等
- select多选的时候可以一次移动多个,现在每次只能一个
- 如何获得鼠标指针在textarea框中的位置
- 请问js怎么对function 扩展
- Extjs做成的表格新插入数据,出现红三角符号,请问玄机在哪,请大侠指点
- prompt对话框 如何知道用户选择了取消按钮还是确定按钮?
- 如何取得div内被选中的文字
- 请教高手个问题,很急!!!!!!
- 求大神帮忙简化下这段代码
- 光盘里的页面,怎么样实现动态的排序和检索?
- 我在一个页面上提供某文件的下载,但是我不想让下载用户看到这个下载地址? 请问如何实现?
<options value="1.htm">aaa
<options value="2.htm">bbb
</select>
<frame src="top.htm" name="topFrame">
<frame src="bottom.htm" name="bottomFrame">
</frameset>top.htm<select onchange="window.open(this.value,'bottomFrame','')">
<option value="1.htm">item1
<option value="2.htm">item2
</select>