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

浅析用iframe来调用页面会不会缓存页面

html页面使用include导入php文件后多出一空白行

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

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

html中textarea的使用及常见问题及案例分析

iframe 多层嵌套 无限嵌套 高度自适应的解决方案

HTML页面3秒后自动跳转的三种常见方法

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

网页表格或div层在网页中被撑开解决之道

网页输入框的样式触发效果

精品推荐
分类导航