I\'m trying to get access to a form and its elements. The form is within an iframe and the javascript code that is accessing the form is within the main document.
I
If your iframe has a name attribute, that can be used as a window name. If the frame name is "myframe":
name
myframe.document.getElementById("myform") // gives you the form element