954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how do i escape from an iframe?

i spent a lot of time yesterday redoing my whole website with iframes for each section but once
i put everything onto the server i found that the links inside the iframes opened inside the iframes rather than in the whole window. how do i escape from the iframe to open a link in the whole window or a new window?
i have just left an example iframe page at http://www.fieryidris.co.uk/iframe.htm so the problem can be seen.

fieryidris
Newbie Poster
13 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Research the "target" attribute of hyperlinks.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

Should be target="_top"

That's how I fixed my problem like this.

shephunts
Newbie Poster
5 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 
fieryidris
Newbie Poster
13 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Thanks a lot. This thread helps me much.

Pritam1984
Newbie Poster
1 post since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

Hadn't used IFRAMEs for a while and forgot about having to use _target. Really messed me up!

Useful reminder.

sourcez
Junior Poster in Training
57 posts since Dec 2007
Reputation Points: 10
Solved Threads: 5
 

Thanks. its useful to solve my problem also. :)
But instead of click on hyp link i need the same on Image click. Do you have any idea about it.?

sbv
Junior Poster
178 posts since Jan 2008
Reputation Points: 15
Solved Threads: 8
 

simple...
REPLACE:

<A href="link.htm">Hyper linked Text</a>

WITH

<a href="link.htm">
<IMG SRC="yourimage.jpg" border="0">
</a>
kiwisites
Newbie Poster
15 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

seem silly but i have done that before, but it didn't work, perhaps because i was making that call from a java scrip, have any body try that, make the same call from a javascript function?

mianovag
Newbie Poster
1 post since Mar 2011
Reputation Points: 9
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You