Home >Web Front-end >JS Tutorial >js implementation of select jump menu new window effect code sharing (super simple)_javascript skills

js implementation of select jump menu new window effect code sharing (super simple)_javascript skills

WBOY
WBOYOriginal
2016-05-16 15:43:421306browse

This is a js-based code to implement the new window effect of the select jump menu, share it with everyone to learn


Operation rendering: -----------------------------View the effect---------------- -------

Tips: If the browser does not work properly, you can try switching the browsing mode.
The js code shared with everyone to implement the new window effect of the select jump menu is as follows

<select onchange="window.open(this.options[this.selectedIndex].value)" name="select">
<option value="http://www.jb51.net/jiaoben/" selected="selected">脚本下载</option>
<option value="http://www.jb51.net/list/index_1.htm">网络编程</option>
<option value="http://www.jb51.net/books/">电子书籍</option>
</select>

The above is the js code to implement the select jump menu new window effect shared with you. I hope you like it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn