首页 > 技术文章 > 下拉框添加链接

wangdahai 2016-05-17 13:03 原文

<SELECT name="select" onchange="window.open(this.options[this.selectedIndex].value,target='_self')">
<OPTION value='file1.htm' selected>网址1</OPTION>
<OPTION value='file2.htm'>网址2</OPTION>
<OPTION value='file3.htm'>网址3</OPTION>
</SELECT>

 

推荐阅读