By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,738 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,738 IT Pros & Developers. It's quick & easy.

iframe access javascript does not work in firefox

P: 10
hi all ,
i want to access a form(name as form2) include in an iframe. so the "opDetails" is the name of the iframe.

var frameName = window.frames['opDetails'].window.form2.elements.length;

this cord segment is working in explorer but it does not work in firefox..

so please any one can explain the reason and the solution for this problem..?
Feb 16 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Expand|Select|Wrap|Line Numbers
  1. var frameName = window.frames['opDetails'].document.form2.elements.length;
See this page for more info.
Feb 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.