Connecting Tech Pros Worldwide Help | Site Map

iframe access javascript does not work in firefox

Newbie
 
Join Date: Oct 2006
Posts: 10
#1: Feb 16 '07
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..?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Feb 16 '07

re: iframe access javascript does not work in firefox


Use
Expand|Select|Wrap|Line Numbers
  1. var frameName = window.frames['opDetails'].document.form2.elements.length;
See this page for more info.
Reply


Similar JavaScript / Ajax / DHTML bytes