*
The moose likes HTML, CSS and JavaScript and the fly likes how to make a link inside an iframe, go to another webpage entirely? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to make a link inside an iframe, go to another webpage entirely?" Watch "how to make a link inside an iframe, go to another webpage entirely?" New topic
Author

how to make a link inside an iframe, go to another webpage entirely?

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
hello,

may i ask for comments?

how is it done to make a link inside an iframe, go to another webpage entirely? and not go to another webpage inside the iframe.....i want to go to another page entirely

when i made a link inside the iframe, when i clicked it, it did go to the webpage, but it was inside the iframe, ...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61056
    
  66

Add target="_blank" to the anchor tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
thanks Bear,

it started a new instance of the browser and opened the new webpage on it,

how about opening the new webpage, on the same browser where the iframe is?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61056
    
  66

target="_top"

An HTML Reference might be a good idea for you to have handy.
[ August 06, 2005: Message edited by: Bear Bibeault ]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
thanks!

yes i need to brush up on html and javascript, as jsp development would be almost impossible without them
 
jQuery in Action, 2nd edition
 
subject: how to make a link inside an iframe, go to another webpage entirely?