Hi!
I've tried accessing fields in a "child" window. Used something like this:
...
<script language="JavaScript">
function activate(target,targetApp)
{
var win='toolbar=0,directories=0,menubar=0,scrollbars=0;
var new_window = open(target,'',win);
new_window.document.frm.UserID.value = board.UserID.value;
new_window.document.frm.targetApp.value = targetApp;
new_window.focus();
}
</script>
...
Works like a charm in IE, but in Netscape (6) the script stops execution whnever I reach a line which tries to access fields in the child window (I also tried getting the values from the parent window by using 'opener' in an onload function in the child window, but that didn't work either!)
The most angering thing is that code very similar to this can be found in the javascript reference in the netscape home site! This is really getting me down!
A similar problem occurred when I tried accessing one frame from the other in the same page.
I used the following:
...
iframedoc = parent.frames["text"].document;
var el = iframedoc.getElementById("board"
;// "board" is a form
el.innerHTML = htmlStr; // "htmlStr" was formatted beforehand
...
Again, IE happily obliged, while netscape stops execution!
So, can abyone help?
I've tried accessing fields in a "child" window. Used something like this:
...
<script language="JavaScript">
function activate(target,targetApp)
{
var win='toolbar=0,directories=0,menubar=0,scrollbars=0;
var new_window = open(target,'',win);
new_window.document.frm.UserID.value = board.UserID.value;
new_window.document.frm.targetApp.value = targetApp;
new_window.focus();
}
</script>
...
Works like a charm in IE, but in Netscape (6) the script stops execution whnever I reach a line which tries to access fields in the child window (I also tried getting the values from the parent window by using 'opener' in an onload function in the child window, but that didn't work either!)
The most angering thing is that code very similar to this can be found in the javascript reference in the netscape home site! This is really getting me down!
A similar problem occurred when I tried accessing one frame from the other in the same page.
I used the following:
...
iframedoc = parent.frames["text"].document;
var el = iframedoc.getElementById("board"
el.innerHTML = htmlStr; // "htmlStr" was formatted beforehand
...
Again, IE happily obliged, while netscape stops execution!
So, can abyone help?