Can someone please explain why the following code works in Internet Explorer, but doesn't work in Firefox/Mozilla:
parent.frames["ctl00_Conte
ntPlaceHol
der1_Libra
ryFrame"].
document.f
orms['form
1'].id
or
document.frames["ctl00_Con
tentPlaceH
older1_Lib
raryFrame"
].document
.forms['fo
rm1'].id
when I run the code in Venkman, I keep getting:
Caught exception: TypeError: parent.frames.ctl00_Conten
tPlaceHold
er1_Librar
yFrame has no properties
when I execute the line in the console.
(The code definitely runs in Internet Explorer so I can't imagine it's a simple spelling mistake)
Start Free Trial