You are here:

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


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.


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:


All Answers

Ask Experts


Randy L. Taylor


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.


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

©2017 All rights reserved.