I have a dropdown in my page. Whenever a user is selected the option it should open a new window with the selected index url. the below code is working in all browsers except safari.
Any idea to solve this issue..?
<form> <select class="searchboxproduct" style="width: 243px;" name="URL" onchange="window.open(this.form.URL.options[this.form.URL.selectedIndex].value)"> <option value="">select</option> <option value="www.gmail.com/">Gmail</option> <option value="www.google.com">google</option> </select> </form>Answer1:
I've tried your code, it didn't open a new tab, either.<br /> But when I set the safari settings to <strong>NOT block pop-up windows</strong>, it worked !<br /> Therefore I don't think it's your code's problem.<br /><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/iUCqa.jpg" data-original="https://i.stack.imgur.com/iUCqa.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
larger size of picture is <a href="http://www.ncc.edu/programsandcourses/distance_ed_online/disable_popup_blocking.shtml" rel="nofollow">here</a>