Error:
document.frames is not a function
Code:
document.frames(“frame1”).document.forms(“Form2”).submit();
iFrame:
<f:verbatim>
<iframe SRC=”
name=”frame1″ id=”frame1″
style=”width:100.0%; height:575.0px;” frameborder=”0″
width=”100%” scrolling=”auto”/>
</f:verbatim>
Is there a way to define the document.frames function for Firefox? I defined the .click() function like…
function defineClick(){
if(!window.event){
HTMLElement.prototype.click = function() {
var evt = this.ownerDocument.createEvent(‘MouseEvents’);
evt.initMouseEvent(‘click’, true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
this.dispatchEvent(evt);
}
}
}
and it worked fine. Is there something similar?
Thanks,
[tim]