window.opener.location
解决方案 »
- 如何获取GridView1表中的各个input和textarea控件的值
- 请教js中 (function(){})() 这种函数的用法
- 求救 jquery 用css找不到元素
- ajax返回值不能更新啊!或者说js中的变量不更新啊!
- js导航问题,javascript能生成一个div吗?
- 不是高手别说话!!!IE全自动关闭! 问题!
- 在table中,我有一列中是checkbox,请问我这个checkbox,怎么访问啊!
- 在一个对象上定义了单击事件,如何在双击事件发生时执行另一个处理,而不执行单击事件处理
- 一个页面放两个或多个iframe,进入或刷新时特别慢,一个就正常。怎样解决?
- jquery的正则匹配怎么写? 正则 .text()为什么总是错误.
- strFrame+='</scr' + 'ipt>' 这样写的用意????
- div自写弹出对话框的问题
or
window.parent.location
得不到啊???代码如下:
1.html
<html>
<head>
<title>wujinjian</title>
</head>
<body>
<a href="2.html">asdf</a>
</body>
</html>
2.html
<html>
<head>
<title>wujinjian</title>
<script type="text/javascript">
alert(document.referrer);
</script>
</head>
<body>
sdafasdfsadsafsadassdfsad
</body>
</html>
1.html
<html>
<head>
<title>wujinjian </title>
</head>
<body>
<a href="2.html">asdf </a>
</body>
</html> =================================2.html
<html>
<head>
<title>wujinjian </title>
<script type="text/javascript">
alert(document.referrer);
</script>
</head>
<body>
sdafasdfsadsafsadassdfsad
</body>
</html>
冲星了,差19分,呵呵。