- 注册时间
- 2012-6-16
- 最后登录
- 2019-2-13
- 阅读权限
- 10
- 积分
- 697
- 精华
- 0
- 帖子
- 137
|
factory 发表于 2012-11-12 09:52
你用mini.open从一个父页面弹出一个面板子页面,window.Owner获取到的就是这个父页面 ...
是这样吗
aaa.html页面:
<!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>
<script language="javascript" src="js/boot.js" type="text/javascript"></script>
</head>
<body class="showpage">
<button onclick="openit()">BBB</button>
<script type="text/javascript" language="javascript1.2">
<!--
mini.parse();
function openit(){
mini.open({
url:"bbb.html",
id: "ddd",
title: "Options",
iconCls: "icon-edit",
width: 900, height: 550,
allowResize: false,
onload: function () {
var iframe = this.getIFrameEl();
// var data = { action: "new"};
// iframe.contentWindow.SetData(data);
},
ondestroy: function (action) {
//grid.reload();
}
});
}
//-->
</script>
</body>
</html>
bbb.html页面:
<!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>
<script language="javascript" src="js/boot.js" type="text/javascript"></script>
</head>
<body class="showpage">
<script type="text/javascript" language="javascript1.2">
alert(window.Owner);
</script>
</body>
</html> |
|