1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<html> <head> <title>Subframe form</title> <script> // Simulate the user clicking on the submit button. function submitForm(name) { var form = document.getElementById("form"); var node = form.contentDocument.getElementById(name); node.click(); return true; } </script> </head> <body> <iframe src="form.html" id="form" name="form"></iframe> </body> </html>