In a HTML page, I have this javascript function:
function PopWindow(WinNa me, WindowUrl) {
if (document.ShowD ocs.show[0].checked)
popup = window.open(Win dowUrl, "MyWindow")
else
popup = window.open(Win dowUrl, WinName)
}
and further:
<form name="ShowDocs" >
....
<input TYPE="radio" NAME="show" value=same checked>
<br>
<input TYPE="radio" NAME="show" value=diff>
....
</form>
and further:
<a href=javascript :PopWindow("win 1","path/to/doc1")>document 1</a>
<a href=javascript :PopWindow("win 2","path/to/doc2")>document 2</a>
<a href=javascript :PopWindow("win 3","path/to/doc3")>document 3</a>
How is it that it works OK with NS4, NS7, Mozilla, but that IE opens
each document in a separate window even if the first "show" radio is
checked?
I have added an alert(document. ShowDocs.show[0].checked) at the
beginning of the function and it gives "true".
Thanks for a clue...
function PopWindow(WinNa me, WindowUrl) {
if (document.ShowD ocs.show[0].checked)
popup = window.open(Win dowUrl, "MyWindow")
else
popup = window.open(Win dowUrl, WinName)
}
and further:
<form name="ShowDocs" >
....
<input TYPE="radio" NAME="show" value=same checked>
<br>
<input TYPE="radio" NAME="show" value=diff>
....
</form>
and further:
<a href=javascript :PopWindow("win 1","path/to/doc1")>document 1</a>
<a href=javascript :PopWindow("win 2","path/to/doc2")>document 2</a>
<a href=javascript :PopWindow("win 3","path/to/doc3")>document 3</a>
How is it that it works OK with NS4, NS7, Mozilla, but that IE opens
each document in a separate window even if the first "show" radio is
checked?
I have added an alert(document. ShowDocs.show[0].checked) at the
beginning of the function and it gives "true".
Thanks for a clue...
Comment