I was facing an strange error (Grrrrr!! I can't say it is an error!!) while testing an page with IE and FF. The deal is i have an IFRAME sitting a Page and i have to read the values of the textboxes present in the IFRAME from the page. The following code worked fine in IE but not in FF
var _email = document.frames[0].document.getElementById('emailAddress');
I got pissed off for a while to identify the proper code, the solution is as below which worked in both IE and FF,
var iFrame = parent.frames[0]; //Get the IFRAME
var _email = iFrame.document.forms[0].elements['emailAddress'];
// then, locate the textbox using the 'element' object
Let me see, if any body can post more better script :)