Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display page in new tab?

 
sree hareesh
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sree hareesh
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ThanQ Bear Bibeault .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic