user1747832
user1747832

Reputation: 39

Open new window out of iframe

I currently have a page that contains an iframe. That iframe is opening a page from a 3rd party site that contains a form.

The page that I show in the iframe is:

http://local.amazon.com/subscribe

I do not have control of the page that appears in the iframe since it is from a 3rd party.

What I want to happen is after the user clicks on Continue and then clicks on Subscribe, the next page needs to break out of my iframe and open full-window.

Is that even possible?

Upvotes: 0

Views: 195

Answers (2)

user27342
user27342

Reputation: 29

Try target="_blank" within an iframe and top.location = self.location.href.

Upvotes: 0

Christophe
Christophe

Reputation: 28114

No, you cannot detect clicks that happen on pages that are not under your control (same origin policy).

Upvotes: 1

Related Questions