GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes how to display page in new tab? 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 display page in new tab?" Watch "how to display page in new tab?" New topic
Author

how to display page in new tab?

sree hareesh
Greenhorn

Joined: Nov 16, 2011
Posts: 11
Hi all,

when i click a link, the page should be loaded in new tab. how can i do it using html.

Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Use the target attribute on links, setting it to "_blank".

You cannot control whether the page will open in a new page or a tab; that is a browser setting that the user chooses.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sree hareesh
Greenhorn

Joined: Nov 16, 2011
Posts: 11
ThanQ Bear Bibeault .
 
GeeCON Prague 2014
 
subject: how to display page in new tab?