Home > Article > Web Front-end > js implementation of select jump menu new window effect code sharing (super simple)_javascript skills
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.