I would like this related page to open in a new Window, AND keep the HOME page unchanged.
I have an onClick function called "gox1" to load the related page. When I try to put "window.open" in the statement/definition of the "gox1" function (see below), it simply load the related page in the original window, replacing the Home page AND open up an empty new window at the same time, which is not what I want.
Codes shown below, any help on this will be much appreciated!!!
Expand|Select|Wrap|Line Numbers
- <form name="doublecombo">
- <select name="ky" size="7" onChange="redirec(this.options.selectedIndex)" class="tablexx" target="_blank">
- <option>Germany</option>
- <option>USA</option>
- </select>
- <select name="stage" size="7" class="tablexx">
- <option value="http://google.com">Luna</option>
- </select>
- <input type="button" name="test" value="Info"
- onClick="gox1()">
- <script>
- function gox1(){
- location=temp.options[temp.selectedIndex].value; window.open()
- }
- </script>
- </form>