views:

38

answers:

2

User clicks on URL hyperlink (http://example.com) within a iframe dialog window, dialog window closes and link is open in parent page.

how do you open the clicked link in the parent page instead of inside the iframe page?

A: 

If its an <a /> tag then set the target attribute to _parent

This will open the linked document in the parent frameset

rahul
+1  A: 

On the iFrame page:

<a href="javascript:parent.window.location.href='http://cnn.com/';"&gt;Go to CNN</a>
Gert G
works well, thanks :)
K001
No problem, Khou. :)
Gert G