javascript - submit an iframe form
i have been trying
<iframe id="fid" name="fname" src="http://www.google.com/"></iframe>
<script>
function submitForm(){
window.frames[0].document.forms[0].submit();
}
<input type="submit" value="try" name="button"
onclick="submitForm();">
</script>
and it will not do a thing, I have also tried several other ways to do this - and other people say it works for them, but not for me. I tried both IE and firefox.
|