html页面互相传值的问题
2020-12-13 04:08
标签:style blog class c code java 第一次使用随笔,感觉还是蛮别扭的 a.html b.html html页面互相传值的问题,搜素材,soscw.com html页面互相传值的问题 标签:style blog class c code java 原文地址:http://www.cnblogs.com/321qwe/p/3731513.htmlhtml>
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>
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>