Cranio
Cranio

Reputation: 9837

Open new browser window from popup

I have a webpage (A) that opens a popup (P).

In P, I have a link that must open a new _blank target page in the original browser instance (the one with page A).

How can I accomplish this? I've tried some solutions based on window.open() but I am not sure how to apply them.

Thanks a lot.

Upvotes: 2

Views: 500

Answers (1)

Chandra Sekhar Walajapet
Chandra Sekhar Walajapet

Reputation: 2554

you can try window.opener.location.href to set the parent window location to the new url which you wanted to open in the parent.

Upvotes: 2

Related Questions