首页 > 其他 > 详细

Form表单提交用户数据并在iframe中显示

时间:2015-05-08 18:21:18      阅读:266      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>

<html>

<body>

<iframe name="frameLayout" frameborder="0" width="200px" height="200px">

</iframe>

<form id="frm1" action="demo-form.php" target="frameLayout">

First name: <input type="text" name="fname" value="Donald"><br>

Last name: <input type="text" name="lname" value="Duck"><br>

<input type="submit" value="Submit">

</form>


<p>The value of the action attribute is:

<script>

document.write(document.getElementById("frm1").action);

</script>

</p>


</body>

</html>


Form表单提交用户数据并在iframe中显示

原文:http://9966064.blog.51cto.com/9956064/1649675

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!