This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 2066
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: 63208
    
  69

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: 2066
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: 63208
    
  69

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: 2066
thanks!

yes i need to brush up on html and javascript, as jsp development would be almost impossible without them
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to make a link inside an iframe, go to another webpage entirely?
 
It's not a secret anymore!