michael
michael

Reputation: 11

Refresh opener window

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 refreshing the opening page, a new window is opened with index.php, or I get Permission Denied (in IE)

This is driving me nuts!

Thanks

Upvotes: 1

Views: 2961

Answers (2)

Mic
Mic

Reputation: 25184

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

Upvotes: 0

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 121067

Have you tried

window.opener.location.reload()

Upvotes: 3

Related Questions