Navigate from href in Iframe

  • Thread starter Thread starter Jeronimo Bertran
  • Start date Start date
J

Jeronimo Bertran

I have an <a href=url> inside an Iframe.... when I click it, the url is
navigated inside the frame... what do I need to do in order to navigate the
url on the browser window and NOT the iframe??

Thanks ,

Jeronimo
 
Sahil,

An example of how to retrieve the reference of the outside window and how
to use that reference to navigate would be GREAT...

Thanks...
 
Typically, I would just use the onclick of the hyperlink as seen below:

<a onclick="parent.document.location='some_url';" style="cursor:hand;"...

The only problem here is you have to specify the cursor style to display the
hand onmouseover.
 
Back
Top