View Full Version : Breaking out of Iframe script


wolfy
01-17-2003, 02:28 AM
I have a multi-search engine which shows the search results inside an iframe... in short, the content or source of the iframe does not come from my own files but from an external source page which are the search engines.
Now my question is, How do I get to break-out of the iframe using Javascript or a simple script??

ineedhelp
01-17-2003, 03:49 AM
<a href="blah.html" target="blank">blah</a>

Alcy
01-18-2003, 12:39 AM
You might want to insert an underscore before "blank". If you happen to be viewing more than one site at a time, and one of sites has named one of their frames "blank", then your link will open there as well.

<a href="link.html" target="_blank">

There's also:

<a href="link.html" target="_new">

If you happen to have multiple links on your page, the first one will open to a new window, but all links afterwards will open in that same window (if you target to "new").

If you just want the link to open... over, your iframe (in the same window):
<a href="link.html" target="_top">

wolfy
01-19-2003, 07:31 AM
Alcy, where do I insert your code?
ain't that applicable only if the source of
the iframe is coming from your own file?
and not from
an external one??
===================================

Alcy
01-19-2003, 05:55 PM
It doesn't matter where the frame source is coming from. Try it :)!

You stick it into every link.
For example, if you wanted to link to lissa explains:
<a href="http://www.lissaexplains.com" target="_blank">

wolfy
01-19-2003, 11:59 PM
i think you did'nt get it...
i also know how to do that
but mine is more complicated.
are you really good on this java script thing?
if so, then why don't you give your email add instead then i'll email to you the code of my webpage
so that you'll know what i'm talking about. 'coz i tried posting it here but its too darn long... it exceeded the character limit for posting.

honeydew146
04-20-2006, 08:31 AM
Hi Alcy... your code does help me in solving iframe problems... thank you... :waves: