手机
当前位置:查字典教程网 >网页设计 >XHTML >html页面互相传值的问题解决方案
html页面互相传值的问题解决方案
摘要:第一次使用随笔,感觉还是蛮别扭的a.htmldemob.htmlNewDocumentdocument.write(location+"")...

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

a.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>

b.html

<HTML>

<HEAD>

<TITLE> New Document </TITLE>

</HEAD>

<BODY>

<SCRIPT LANGUAGE="JavaScript">

document.write(location+"

");

document.write(location.search+"

");

document.write(decodeURIComponent(location.search.substr(location.search.indexOf("=")+1)));

</SCRIPT>

</BODY>

</HTML>

【html页面互相传值的问题解决方案】相关文章:

在Firefox或IE中span无法确定宽度的解决方案

关于html水平垂直居中的问题小结

iframe节点初始化的问题探讨

xhtml css网页制作问题的解决方法

关于hr标记在各浏览器中的问题说明

关于label和span设置width无效问题解决方法

HTML页面style中里面!-- --的作用是什么

flash嵌入html 在html网页代码中嵌入Flash文件的解决方案(下)

禁止页面缓存的几种方法分享

html中br和br/的区别介绍

精品推荐
分类导航