I am trying to automatically submit data into my iFrame. In the iFrame will be multiple text boxes and a submit button. I want to enter data into those text boxes and submit it.

This code is not working for me...

<html>
<head>Sim Game</head>
<body>

<script type="text/javascript">
function subForm() {
document.myform.submit();
}
{
myform.Arrive.value="Hello";
myform.Leave.value="Goodbye";
subForm();
}
</script>

<form method="post" name="myform" target="myFrame">

<iframe height="600" width="600" frameborder="0"

src="MyWebPage.com" name="myFrame">

</body>
</html>