M
Mike Scirocco
I use this function to detect an iframe button click. It works in IE6
but not in FF 1.5.
function setupbutton(){
var myiframe=document.getElementById('ifrmEditCategory');
var mybutton=myiframe.contentWindow.document.getElementById('btnClose')
//alert('myiframe '+myiframe+' mybutton '+mybutton);
mybutton.onclick=function() {btncloseclick()}
}
I call this after the iframe has been completely loaded, and make srue
the code can find the btnClose with the alerts... objects are shown for
both variables, so I'm sure it's finding the button.
Is there a way to make this code more robust for different browser?
Thanks,
Mike
but not in FF 1.5.
function setupbutton(){
var myiframe=document.getElementById('ifrmEditCategory');
var mybutton=myiframe.contentWindow.document.getElementById('btnClose')
//alert('myiframe '+myiframe+' mybutton '+mybutton);
mybutton.onclick=function() {btncloseclick()}
}
I call this after the iframe has been completely loaded, and make srue
the code can find the btnClose with the alerts... objects are shown for
both variables, so I'm sure it's finding the button.
Is there a way to make this code more robust for different browser?
Thanks,
Mike