Adam
Adam

Reputation: 20882

JQUERY - simulate target="_parent"

I have a site that operates out of an IFRAME.

Is it possible to simulate <a href="x" target="_parent"></a> with jquery?

Upvotes: 0

Views: 400

Answers (2)

Amber
Amber

Reputation: 526623

window.parent refers to the parent window object, so just modify...

window.parent.location.href

Upvotes: 2

Adam Hopkinson
Adam Hopkinson

Reputation: 28795

Just do a js redirect using

window.parent.location.href

Upvotes: 1

Related Questions