I’m new to designer and need some help. I’m making a web page and have a combobox with a list of webpages for the user to go to. Then I have a button for them to push with this javascrip code in it “location.href = webpages.options[webpages.selectedIndex].value” everything works fine but I want the new webpage to open in a new window and not the same window. I tryed the code location.href =window.open( webpages.options[webpages.selectedIndex].value) and it did open in a new page but main page refreshed to a web page call null. Can anyone help me?
Subject: Open in new window
location.href= leads to a new location for your main page.
Just remove the “location.href=” and call directly the window.open…
Subject: Open in new window
In a link, the window is determined by the target of the link. You will want to code your link to have the parameter &target=“new” or &target=“blank”. This article will help explain the difference between them:
http://www.markwielgus.com/permalink/Open-Links-in-New-Window-Blank-vs-New.html