You are here:

Javascript/how to access a form field inside a IFrame through JAVAScript

Advertisement


Robbert Helling wrote at 2007-06-28 11:37:35
You can add an onload to the iframe. The script will be started when the page is loaded.



onload="javascript:iFrameControl(this)"



I use this script for the cross browser compatibility (it works for me in the A-grade's like safari, firefox and IE5.5 .. 7):



function iFrameControl(tObj) {



tObjFrame = tObj.contentDocument ? tObj.contentDocument  : tObj.contentWindow.document;



}  


Ittuh wrote at 2012-12-31 00:05:14
I think this is exactly what you are looking for:



http://www.theitcommunity.com/wiki/Get_the_content_of_an_iframe_using_JavaScript


Javascript

All Answers


Ask Experts

Volunteer


Randy L. Taylor

Expertise

I can answer advanced questions concerning most aspects of web programming including HTML, DHTML, DOM, JavaScript, Cookies, Internet Explorer, and CSSs. I can answer basic questions concerning XML and ActiveX. I can also answer questions concerning Regular Expressions, logical design algorithms, and Object Oriented Programming.

Experience


Past/Present clients
Upp Business Systems, LLC
Headquarters Standard Systems Group, USAF

©2016 About.com. All rights reserved.