一个页面中弹出另一个页面 他们不是父子关系 如何实现他们之间的js的调用

如题所述

不知道你是怎么弹出的另一个页面,如果用window.open或window.showModalDialog弹出的页面就是父子关系的。
温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2016-02-23
啥也不说了,直接给你上代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript">
window.open('http://www.baidu.com/','alwaysRaised=no','directories=yes')
</script>
</head>
<body>
<h1>我是页面1,打开我的时候我顺便打开百度首页</h1>
</body>
</html>本回答被提问者和网友采纳
第2个回答  2014-10-17
具体的你要调用什么呢
第3个回答  2014-10-17
可以使用js window.open这个方法
第4个回答  2014-10-17
通过COOKIE来嘛