手机
当前位置:查字典教程网 >网页设计 >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页面互相传值的问题解决方案】相关文章:

关于表格table嵌套,边框合并问题的解决方法

ie7打开页面有源文件但页面空白问题的解决方法

html页面实现过两秒跳转至其他页面的方法

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

html中br和br/的区别介绍

Firefox下英文字母不换行的解决方案

在网页上调用桌面exe程序的简单方法

html 中文乱码 HTML超链接中文乱码问题分析及解决方法

form上传文件后提示保存action的原因及解决方法

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

精品推荐
分类导航