How To Open A Link In A Select Box In A New Window? June 23, 2022 Post a Comment How can I open each link in this select box in a new window? link Solution 1: The correct function for a new window is window.open(); <form name="jump"> <select name="menu"> <option value="http://">link</option> <option value="http://">link</option> <option value="http://">link</option> </select> <input type="button" id="button" onclick="window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value);" value="GO" /> </form> Copy Note: Writing in line javascript can be messy. try separating your javascript from your presentation Share Post a Comment for "How To Open A Link In A Select Box In A New Window?"
Post a Comment for "How To Open A Link In A Select Box In A New Window?"