As long as the document loaded in the IFrame is on the same domain as the parent frame, then you should be able to access it's contents like so:
<script>
document.frames["myIFrame"].document.myForm.myInput
</script>
Of course, you need to replace "myIFrame" with the id of your IFrame, and the same goes for "myForm" and "myInput". Also, this will only work after the IFrame is done loading, and only on IE (I think).
from : http://en.allexperts.com/q/Javascript-1520/access-form-field-inside.htm
<script>
document.frames["myIFrame"].document.myForm.myInput
</script>
Of course, you need to replace "myIFrame" with the id of your IFrame, and the same goes for "myForm" and "myInput". Also, this will only work after the IFrame is done loading, and only on IE (I think).
from : http://en.allexperts.com/q/Javascript-1520/access-form-field-inside.htm
댓글을 달아 주세요