`
wandejun1012
  • 浏览: 2694862 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

form.submit()和window.location区别

    博客分类:
  • html
 
阅读更多

form.submit()是转发,信息不会丢失。

 

window.location是重定向,信息会丢失。

即:他不会收集页面表单上的信息。

 

具体什么样的信息会丢失,有空再来研究。

 

 

 

refurl:

http://wandejun1012.iteye.com/blog/1747493

 

 

 

 

 

 

分享到:
评论

相关推荐

    JavaScript权威指南

    The Location Object Section 13.10. The History Object Section 13.11. Multiple Windows and Frames Chapter 14. The Document Object Section 14.1. Document Overview Section 14.2. Dynamically ...

    js调用Action

    方法一: ...用js函数让网页重定向,window.location.href=‘actionName.action?paraName=arg0’; 如果需要带参数的话可以在action中定义那个参数名paraName,并生成setter和getter方法 方法二: ...

    js打开新窗口方法整理

    window.top.location=url 可以在iframe中的页面在父窗口刷新打开 window.open方法可控制的样式丰富,比如我们可以控制窗口显示的大小,窗口显示的内容,以及位置等等。都是使用js中的window.open有一个缺点就是容易...

    regedit.jsp 表单注册用户名密码

    <form name="form1" method="post" action="regeditIn.jsp" onSubmit="return on_submit()"> 用户名: 检测用户" onClick="check('checkuser.jsp')"> 密码: 确认密码: 学生 老师 管理员 ...

    jsp音乐网源码

    <input name="Submit2" type="button" class="btn_grey" value="重置" onClick="window.location.reload();">   <input type="button" name="Submit3" class="btn_grey" value="返回" onClick="history.back(-1...

    浮点vfdsfJAVA实现链表,双向链表.txtJAVA实现链表,双向链表.txt

    <td><input id="btn_submit" name="" type="image" src="/images/btn_submit.png" /> <!-- upload need to know --> 上传须知 * 如涉及侵权内容,您的资源将被移除 * 请勿...

    ASP.NET程序中常用的三十三种代码.txt

     e.item.Attributes.Add("ondblclick", "location.href=’../ShippedGrid.aspx?id=" + OrderItemID + "’"); }  双击表格打开新一页 if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ...

    如何实现web页面的提示保存功能

    每每听到客户抱怨自己修改和很久的数据由于自己的一个误操作而丢失时,总想让web页面也有像window窗体一样具有提示保存的功能。所以,经过一段时间的研究以后终于实现了这个功能!============ ...

    js对象层次• navigator •screen•window

    • window o history o location o frames[]; Frame o document  anchors[]; links[]; Link  applets[]  embeds[]  forms[]; Form  Button  Checkbox  elements[]; Element  Hidden ...

    ExtAspNet v2.2.1 (2009-4-1) 值得一看

    --也就是说生成的input的type不能是"submit",而这个限制在有些情况下是不可原谅的。 --我们做了优化,现在要使一个Asp.net的按钮能够AJAX提交,你不需要做任何设置(PageManager的属性EnableAjax为true即可,这...

    ExtAspNet_v2.3.2_dll

    ExtAspNet是一组专业的Asp.net控件库,拥有原生的AJAX支持和丰富的UI效果, 目标是创建没有ViewState,没有JavaScript,没有CSS,没有UpdatePanel,没有WebServices的Web应用程序。 支持的浏览器: IE 7.0+, Firefox...

    ASP.NET常用代码

    e.item.Attributes.Add("ondblclick", "location.href='../ShippedGrid.aspx?id=" + OrderItemID + "'"); } 双击表格打开新一页 if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType....

    JSP分页查询实例代码.doc

    var newwin = window.open(url,"newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=450"); newwin.focus(); return false; } [removed] ...

    unigui0.83.5.820

    - 0000760: UniDBLookupXXX: KeyField value submit bug - 0000761: UniEdit and KeyXXX event bug - 0000759: UniDBLookupXXX: KeyField value problem 0.83.0.811 +-----------------------------------------...

    js使用小技巧

    " 和 "?"也编码 表格行指示 <tr onmouseover="this.bgColor="#f0f0f0"" onmouseout="this.bgColor="#ffffff""> //各种尺寸 s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ ...

    登录页面源码

    files/analytics.js"></script><script type="text/javascript" async="" src="./ReadMe.io Crowdsource Your Developer Hub_files/heap.js"></script><script>window.heap=window.heap||[],heap.load=function(t,e)...

    fso浏览54646465465464564

    Response.Write "<tr value="""&oDrive.DriveLetter&":\"" ondblclick=""location.href='?page=fso&fname='+escape(this.value);""" If Islight Then Response.Write " bgcolor='#EEEEEE'" Response.Write ">...

    html个人网站xp界面

    <input type="button" name="Submit2" value="注册" onclick="javascript:window.location.href='register.asp'" /> </label></td> <td width="309" height="30"><span class="font12Red...

    dwr验证框架多级联下拉菜单

    window.location.href="index.jsp?ProvinceID="+ProvinceID; //缺点:取父结点的值时要转发页面. } function ChangeItem_C(){ var CityID=form1.city.value; window.location.href="index.jsp?CityID="+...

    网上图书销售数据库+ASP

    '-------------------------------------------------------------------- ' Microsoft ADO ' ...' ' ' ' ADO constants include file for VBScript ' '------------------------------------------------------------...

Global site tag (gtag.js) - Google Analytics