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.
 
no script required:

<a href=url target="_top">

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top