Navigate from href in Iframe

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
 
J

Jeronimo Bertran

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...
 
G

Guest

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.
 

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

Members online

Forum statistics

Threads
474,158
Messages
2,570,881
Members
47,414
Latest member
djangoframe

Latest Threads

Top