How To Open A Link In A Select Box In A New Window? November 30, 2023 Post a Comment How can I open each link in this select box in a new window? linkSolution 1: The correct function for a new window is window.open();<formname="jump"><selectname="menu"><optionvalue="http://">link</option><optionvalue="http://">link</option><optionvalue="http://">link</option></select><inputtype="button"id="button"onclick="window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value);"value="GO" /></form>CopyNote: 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?"