TechnicalAnalysis
Programmer
I want to read the URL of the frame in another browser opened from my page. The read URL will then display in the text field of the opener browser's form.
I thought something like this will work but no luck.
function getTheURL() {
document.FormName.fieldname.value=newWin.document.frames[1].location.href;
}
function openWin() {
var newWin=window.open(url,"InWin"
setTimeout("getTheURL()",10000); //wait about 10 seconds
}
Where the form with name FormName is in the opener window.
I got the error of newWin.document has no properties. Not sure why? Any suggestion is appreciated.
Regards
I thought something like this will work but no luck.
function getTheURL() {
document.FormName.fieldname.value=newWin.document.frames[1].location.href;
}
function openWin() {
var newWin=window.open(url,"InWin"
setTimeout("getTheURL()",10000); //wait about 10 seconds
}
Where the form with name FormName is in the opener window.
I got the error of newWin.document has no properties. Not sure why? Any suggestion is appreciated.
Regards