html页面互相传值的问题

第一次使用随笔,感觉还是蛮别扭的

a.html

html页面互相传值的问题
<html> 

<head> 

  <title> demo </title> 

  <meta name="Author" content="xugang" /> 


</head> 

<body> 

  <FORM name="frm" METHOD="get" ACTION="b.html" onsubmit="return foo()"> 

    <INPUT TYPE="hidden" id="hid" value="123" name="hid"> 

    <INPUT TYPE="submit" value="提交"> 

  </FORM> 

</body> 

</html>
html页面互相传值的问题

 

b.html

html页面互相传值的问题
<HTML> 

  <HEAD> 

    <TITLE> New Document </TITLE> 

  </HEAD> 

  <BODY> 

    <SCRIPT LANGUAGE="JavaScript"> 
         document.write(location+"<br>"); 
         document.write(location.search+"<br>"); 
        document.write(decodeURIComponent(location.search.substr(location.search.indexOf("=")+1))); 

    </SCRIPT> 

  </BODY> 

</HTML>
html页面互相传值的问题

 

html页面互相传值的问题,布布扣,bubuko.com

html页面互相传值的问题

上一篇:解决Apache的错误日志巨大的问题以及关闭Apache web日志记录


下一篇:Js 克隆