开发者

Refresh opener window

开发者 https://www.devze.com 2022-12-19 02:15 出处:网络
I have a window that opens a new window with window.open. When I want to reload/refresh the main page with

I have a window that opens a new window with window.open.

When I want to reload/refresh the main page with

window.opener.location="index.php"

(or many other tests, reload, etc.)

Instead of ref开发者_StackOverflow社区reshing the opening page, a new window is opened with index.php, or I get Permission Denied (in IE)

This is driving me nuts!

Thanks


Have you tried

window.opener.location.reload()


Try window.opener.location.href = 'index.php', it should be OK.

0

精彩评论

暂无评论...
验证码 换一张
取 消