How to make sure a new browser session is open for a link?

  • Scott123
  • Newbie
  • Newbie
  • Scott123
  • Posts: 10

Post 3+ Months Ago

Anyone knows what HTML code is for opening a new browser session when a link on my web page is clicked?
I don't want visitor to leave my site when they click on a link. Instead, I want the link to open a new browser session.

Thanks. :)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • celandine
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2008
  • Loc: Belgrade, Serbia

Post 3+ Months Ago

The simple way is to add
Code: [ Select ]
target="_blank"

to your anchor tag. So for instance:
Code: [ Select ]
<a href="http://www.whatever.com" target="_blank">Visit whatever.com now!</a>

Here is a javascript solution which will apply to all external links automatically, in case you like that better :D
  • prateekshawebdesign
  • Newbie
  • Newbie
  • prateekshawebdesign
  • Posts: 10
  • Loc: India

Post 3+ Months Ago

hi Scott123

what do u mean by session?... do u mean the php/asp Session ?

if so, then i have not heard of creating a new session and keep the old one intact.

sumeet shroff

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 66 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.