In a HTML page, I have this javascript function:
function PopWindow(WinName, WindowUrl) {
if (document.ShowDocs.show[0].checked)
popup = window.open(WindowUrl, "MyWindow")
else
popup = window.open(WindowUrl, 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("win1","path/to/doc1")>document 1</a>
<a href=javascript:PopWindow("win2","path/to/doc2")>document 2</a>
<a href=javascript:PopWindow("win3","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...