Hi,
I am trying to submit a form in an iframe from the parent document, but I dont know how to access the iframe.
For example, my html arent doc id:
[CODE]
<script>
function submitForm() {
// Neither of these work
//document.frames.foo.document.forms[0].submit();
//document.getElementById(‘foo’).document.iform.submit();
}
</script>
</head>
<body><center>
<div id=”main”>
<div id=”iframe”>
<iframe name=”foo” src=”upload.php” frameborder=”0″></iframe>
</div>
<input type=”button” onclick=”submitForm()” />
<div id=”status”>
</div>
As you can see I have a button, and when I click on it I want to submit the form that is in my iframe,
Thanks for your time!
Jon