View Full Version : New window

12-26-2007, 07:22 AM
How do I make it so when a user clicks on a link in my website, it open up in a new window?
TV Forum (http://www.tv-gossip.com/)

12-26-2007, 08:29 AM
You have to use the Target attribute, like this:

<a href="http://www.websitepublisher.net/" target="_blank">Website Publisher opens in new window</a>

Johnny Gulag
12-26-2007, 10:44 AM
Or you can use a little Javascript and keep the HTML valid: http://www.sitepoint.com/article/standards-compliant-world

01-22-2008, 12:54 PM
I've found the best was is to use, and keep the HTML valid, use: onclick="window.open(this.href,'newwin'); return false;"