静态HTML页面传递参数的方法 (表单)
来源:互联网 发布:中世纪2优化9法兰西 编辑:程序博客网 时间:2024/05/22 12:37
静态HTML页面传递参数的方法
提交页面aa.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<form name="form1" method="GET" action="Untitled-1.htm">
Input Your Name: <input type="text" name="u">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
接收页面, bb.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">
<!--
// if uri parameter which is "?u=never-online.net&l=BlueDestiny";
// scripting by never-online
// blog.csdn.net/blueDestiny
var request = {
QueryString : function(val) {
var uri = window.location.search;
var re = new RegExp("" +val+ "=([^&?]*)", "ig");
return ((uri.match(re))?(uri.match(re)[0].substr(val.length+1)):null);
}
}
// so, You can using request.QueryString(para), like this
var u = request.QueryString("u");
var l = request.QueryString("l");
document.writeln("Hello! " + u);
//-->
</SCRIPT>
</head>
<body>
</body>
</html>
- 静态HTML页面传递参数的方法 (表单)
- 静态HTML页面传递参数的方法 (表单)
- 静态HTML页面传递参数的方法
- html静态页面传递参数-利用JavaScript方法实现静态
- 利用JavaScript方法实现静态html页面参数传递
- 利用js方法实现html静态页面间参数传递
- 利用js方法实现html静态页面间参数传递
- html5学习--静态页面传递参数的几种方法
- 纯html静态页面怎么获取参数(用javascript传递页面参数)
- 纯html静态页面怎么获取参数(用javascript传递页面参数)
- 前端在html页面之间传递参数的方法
- 前端在html页面之间传递参数的方法
- 前端在html页面之间传递参数的方法
- 前端在html页面之间传递参数的方法
- Javascript获取HTML静态页面参数传递值
- 利用js方法实现html静态页面间参数传递 分类:javascriptaa.htm是参数输入界面
- 静态页面html之间传递中文参数出现乱码问题的解决方案
- 实现html页面的参数传递
- 定义字符串变量,设置初值方便编程
- blog开张了!!!
- python了解
- 球吧卫星地图精华坐标集
- net 2.0 - 入门
- 静态HTML页面传递参数的方法 (表单)
- 用javascript实现html页面之间的参数传递
- Mount使用指南
- 老婆与老公的经典对话 程序员版
- (ASP.NET)修改和删除DataGrid行——数据库访问
- Preface
- Download ebook from Syngress Publishing
- 为了这世间最真挚的爱情,帮主人翁寻找远走的他.....
- 动态生成asp.net控件