| | |
how do i escape from an iframe?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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.
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.
thanks shephunts for target="_top".
i ate some bad fish on saturday and i was already deteriorating when the iframes not doing what i expected finished me off.
i have now done some proper research on the different target commands and checked what happens when you use them in an iframe.
all these links below and the results are within an iframe
<a href="http://www.google.co.uk" target="_blank"> will open google in a new window
<a href="http://www.google.co.uk" target="_parent"> will open google in all of the current window
<a href="http://www.google.co.uk" target="_self"> will open google inside the iframe
<a href="http://www.google.co.uk" target="_top"> will open google in all of the current window
<a href="http://www.google.co.uk"> with no target command will open google inside the iframe
separately from this problem i had of escaping from the iframe i have also been emailed some screenshots by my sister of how the iframe page is being displayed in different browsers and it's not looking very good.
the border of the iframe is only showing on the right hand side and the bottom - i'm not sure if this is because i have got a black background as it seemed to work ok for me in internet explorer and firefox before when the background was red.
in netscape 4.7 the iframe is not displayed at all and the top of the page is just followed by the bottom. i know netscape is now 8.0 so 4.7 is very out of date but is this going to affect any other browsers and destroy the page layout making the iframe a bad idea?
.
i ate some bad fish on saturday and i was already deteriorating when the iframes not doing what i expected finished me off.
i have now done some proper research on the different target commands and checked what happens when you use them in an iframe.
all these links below and the results are within an iframe
<a href="http://www.google.co.uk" target="_blank"> will open google in a new window
<a href="http://www.google.co.uk" target="_parent"> will open google in all of the current window
<a href="http://www.google.co.uk" target="_self"> will open google inside the iframe
<a href="http://www.google.co.uk" target="_top"> will open google in all of the current window
<a href="http://www.google.co.uk"> with no target command will open google inside the iframe
separately from this problem i had of escaping from the iframe i have also been emailed some screenshots by my sister of how the iframe page is being displayed in different browsers and it's not looking very good.
the border of the iframe is only showing on the right hand side and the bottom - i'm not sure if this is because i have got a black background as it seemed to work ok for me in internet explorer and firefox before when the background was red.
in netscape 4.7 the iframe is not displayed at all and the top of the page is just followed by the bottom. i know netscape is now 8.0 so 4.7 is very out of date but is this going to affect any other browsers and destroy the page layout making the iframe a bad idea?
.
•
•
Join Date: Dec 2007
Posts: 34
Reputation:
Solved Threads: 1
Hadn't used IFRAMEs for a while and forgot about having to use _target. Really messed me up!
Useful reminder.
Useful reminder.
•
•
Join Date: Oct 2007
Posts: 13
Reputation:
Solved Threads: 0
simple...
REPLACE:
WITH
REPLACE:
HTML and CSS Syntax (Toggle Plain Text)
<A href="link.htm">Hyper linked Text</a>
HTML and CSS Syntax (Toggle Plain Text)
<a href="link.htm"> <IMG SRC="yourimage.jpg" border="0"> </a>
![]() |
Similar Threads
- Dynamic iframe height (JavaScript / DHTML / AJAX)
- iframe height (HTML and CSS)
- iframe help (HTML and CSS)
- Ads sometimes duplicate/double.. (DaniWeb Community Feedback)
- mozilla & dynamic width iframe (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Rich Text Box Code
- Next Thread: HTML code in accessing webpage via mobile phone
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity create css deleted design development displayimageinsteadofflash dreamweaver drupal emailmarketing epilepsy explorer firefox flash font fonts form format frontpage google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft missing mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. templates textcolor theme timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 wordpress xml xsl







