javascript 如何刷新子窗口

来源:百度知道 编辑:UC知道 时间:2024/05/21 12:31:22
我有两个页面.a.html,b.html 在a.html用window.open("b.html"); 如何在a.html页面用脚本让b.html 刷新一次(父窗口刷新子窗口) .

我用 ch = window.open("b.html"); ch.location.reload();测试过了页面提示没有权限.

请各位网上的朋友帮帮忙,看有什么方法.先谢谢了 ~~~~
------------
ch.refresh(); 不行呀
window.ch.refresh(); 不行

window.ch.refresh();

ch=window.open("b.html");
应该改成
window.open("b.html",'ch');

javascript中有函数window.refresh();你可以试试看用下面的语句:

ch.refresh();

父窗口自己刷新+ window.open
不好 ,呵呵