R
Ron Croonenberg
hello,
The function below seems to work just fine in firefox but not in IE ?
what I am trying to accomplish is find the first frame that does have a
'page loaded". I noticed (but I am probably wrong) that if that's not
the case that location is "about:blank".
any ideas ?
thanks,
Ron
function findActiveFrame() {
var frameid = "";
var frameObj;
var i;
for (i=1; i<9; i++) {
frameid = "frame-" + i;
frameObj =
parent.document.getElementById(frameid).contentDocument.location;
if (frameObj.href != "about:blank")
return i;
}
return 0;
}
The function below seems to work just fine in firefox but not in IE ?
what I am trying to accomplish is find the first frame that does have a
'page loaded". I noticed (but I am probably wrong) that if that's not
the case that location is "about:blank".
any ideas ?
thanks,
Ron
function findActiveFrame() {
var frameid = "";
var frameObj;
var i;
for (i=1; i<9; i++) {
frameid = "frame-" + i;
frameObj =
parent.document.getElementById(frameid).contentDocument.location;
if (frameObj.href != "about:blank")
return i;
}
return 0;
}