Tuesday, 3 January 2012

Change value of Element in IFRAME using javascript....

  var IframeID=document.getElementById("myIFrame");
     var eyeframedoc;
           eyeframedoc = IframeID.contentWindow ? IframeID.contentWindow.document: IframeID.contentDocument;
     eyeframedoc.getElementById("elementInsideInIframe").value="any value";

No comments:

Post a Comment