If your iframe is in the same domain as your parent page, you can access the elements using the document.frames collection.
// replace myIFrame with your iFrame id // replace myIFrameElemId with your iFrame element id // you can work on document.frames['myIFrame'].document like you are working on // normal document object in JS window.frames['myIFrame'].document.getElementById('myIFrameElemId')
If your iframe is not in the same domain, the browser should prevent such access for security reasons.
RaYell Sep 20 '09 at 17:00 2009-09-20 17:00
source share