MMMike
06-24-2003, 04:04 AM
I have two pages. One with an iframe in the body:
<iframe name=ifr1 width=100 height=100 src=ifr1.html></iframe>
and ifr1.html with a form:
<form name=f1 id=f1>
<input type="Hidden" name="hid" value="hid">
</form>
In the main (first) file I want to access form f1 elements:
document.ifr1.document.f1 and
document.ifr1.document.forms[0] and
document.ifr1.document.forms['f1'] and
frames.ifr1.document.f1 gives me undefined.
How can I access form elements inside a iframe?
<iframe name=ifr1 width=100 height=100 src=ifr1.html></iframe>
and ifr1.html with a form:
<form name=f1 id=f1>
<input type="Hidden" name="hid" value="hid">
</form>
In the main (first) file I want to access form f1 elements:
document.ifr1.document.f1 and
document.ifr1.document.forms[0] and
document.ifr1.document.forms['f1'] and
frames.ifr1.document.f1 gives me undefined.
How can I access form elements inside a iframe?