怎么样在父页面打开另一个页面? 我也在找同一个问题的答案~~~关注ING... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.opener.location.href = "aa.asp"; //子窗口是用window.open打开的window.parent.location.href = "aa.asp"; //子窗口是父框架网页的子帧 不行,还是在新页面中打开了我的子窗口是父窗口中用window.showModelessDialog打开的,现在在子窗口中用 window.parent.location.href = "aa.asp"; 打开页面,是打开了一个新窗口,并没有在父窗口中打开 你是用非模态框打开的子网页呀. 告诉你, 这不太好做, 要做的话方法是有, 比较麻烦点:showModelessDialog('ttt.htm', window,'dialogWidth: 480px; dialogHeight: 360px; status: no; help: no');注意, 第二个参数是 windowttt.htm:if (window.dialogArguments != null) var pw = window.dialogArguments;functoin mm(){ pw.location.href = "aa.asp"; window.close();} <script language="javascript">function wopen(aa){ aa.parent.location="b.asp";}</script>在子页面的一个链接或按钮等上面,加上这点代码:onClick="javascript:wopen(this);"b.asp为父页面要打开的页面。aa.parent代表aa的父页面。试试看。 试试,我的成功了,哈哈window.setInterval("location='ww.asp'"); window.open("http://office.9zp.com","_parent");window.open("http://office.9zp.com","_top"); opener.window.open("http://www.s0754.com"); window.opener.window.open("youUrl.jsp"); 腾讯微博的滚动翻页怎么实现的? 动态下拉框的实现 请问:怎样阻止图片自动发送request请求 [100分]求同父域下相互通信的问题.data.163.com与www.163.com之间通信 一个动态生成的下拉菜单,怎样去掉重复项? js获取TD数据的问题,求教 判断时间大小 怎么样才能用JAVASCRIPT 语言来隐藏和显示层 变数使用问题! 下载安装问题 如何用createElement创建'Table'对像 在客户端写javascript脚本,定义了一个函数,在这个函数中怎么才能从服务器端取session中值?
window.parent.location.href = "aa.asp"; //子窗口是父框架网页的子帧
我的子窗口是父窗口中用window.showModelessDialog打开的,现在在子窗口中用 window.parent.location.href = "aa.asp"; 打开页面,是打开了一个新窗口,并没有在父窗口中打开
showModelessDialog('ttt.htm', window,'dialogWidth: 480px; dialogHeight: 360px; status: no; help: no');
注意, 第二个参数是 windowttt.htm:
if (window.dialogArguments != null)
var pw = window.dialogArguments;
functoin mm()
{
pw.location.href = "aa.asp";
window.close();
}
function wopen(aa){
aa.parent.location="b.asp";
}
</script>在子页面的一个链接或按钮等上面,加上这点代码:onClick="javascript:wopen(this);"
b.asp为父页面要打开的页面。
aa.parent代表aa的父页面。试试看。
window.setInterval("location='ww.asp'");
window.open("http://office.9zp.com","_top");