-
March 16th, 2013, 05:52 AM
#1
How can I submit data into an iFrame?
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>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|