1.如何获得当前路径:
location.href
2.网页之间如何传递参数(不想用cookie)
A.htm?ok=1&pow=wf
A.asp?ok=1&pow=wf
location.href
2.网页之间如何传递参数(不想用cookie)
A.htm?ok=1&pow=wf
A.asp?ok=1&pow=wf
解决方案 »
- MyEclipse做BBS报错
- |zyciis| Jquery如何用取得自定义属性的对像,有代码, 谢谢
- js加载flash 显示进度条
- 服务端的recordset如果转成客户端ActiveXObject("ADODB.Recordset");?
- 求在 <script> 触发事件的写法
- 怎么样通过IHTMLDocument2接口读取页面中的JavaScript脚本中的一个数组的内容???
- 判断手机号码的正则表达式是这么写??我自己写一个,但绝对不完整,请补充!
- 为什么有的机器上禁止不了alt和ctrl键??
- 子窗口刷新父窗口的互问题
- 怎样才能强制定义select的宽度??
- 怎样在客户端用Javascript 实现检测用户输入是否为数字或日期!!!!
- 求一段关于<select>的代码,很简单,请帮忙看看?
2.两个网页之间可以传递参数必须是打开或被打开的关系
如在被打开的页面里用
parent.f1.hidSelectNum.value="内容"
parent.makeScore();
来控制
3.如果想通过一个网页向另一个网页传递参数则如下示例
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>
body,div,input,a,td{font-size:14px}
</style>
<title></title>
</head>
<body background="imgbg.gif">
<input type="text" name="name" size="20">
<input type="text" name="id" size="20">
<BODY>
<script>
function pic(){
var all,uname,id
var ll="&id=";
var l=ll.length;
var num1=top.location.search.indexOf("&");
var num2=top.location.search.indexOf("=");
var numid=top.location.search.indexOf("&");
uname=top.location.search.substr(num2+1,num1-num2-1);
id=top.location.search.substr(num1+l,100);
document.all.name.value=uname;
document.all.id.value=id;
} pic();
</script>
</body>
</html>