页面不刷新,表单提交到弹出窗口或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  砖头  阅读(1291)  评论(0编辑  收藏  举报

导航