View Full Version : New window
StuartDykes
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/)
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
Spirit
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;"
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.