Hi there, in this site I am working on, I have a scroll down menu in the HOME page where user select an option and then press the button next to it, to be redirected to the related page (which is password protected).
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.ope n" 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!!!
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.ope n" 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!!!
Code:
<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>
[B][/B]
Comment