页面不刷新,表单提交到弹出窗口或Iframe

提交到弹出窗口:  

          document.form1.action = "Save.aspx";
            window.open("", 'win', 'width=420px,height=300px,resizable=yes,top=50px,left=200px,toolbar=no, menubar=no, location=no, status=no');
            document.form1.target = "win";
            document.form1.submit();

 

提交到IFRAME:

<body>

<form name="form1" method="post" action="savePage.aspx" target="save">

<input type="submit" name="Submit" value="提交">

</form>


<iframe src="savePage.aspx" name="save" height="0" width="0"></iframe>
</body>

 

posted on 2010-12-04 03:13 砖头 阅读(395) 评论(0) 编辑 收藏

导航

<2010年12月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

公告

昵称:砖头
园龄:6年2个月
粉丝:0
关注:1

搜索

 
 

常用链接

随笔分类

随笔档案

文章分类

最新评论

阅读排行榜

评论排行榜

推荐排行榜