Created
July 11, 2012 10:06
-
-
Save ArupSen/3089412 to your computer and use it in GitHub Desktop.
Use inline javascript onclick to open link in new window or tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://www.bigmustard.co.uk/models/view/dik-cadbury/622" title=" Dik's profile at Mustard Casting in a new window" onclick="window.open('http://www.bigmustard.co.uk/models/view/dik-cadbury/622');return false">Mustard Models</a> |
Thanks! Really helped with this project that I was working on
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an alternative method to the target="_blank" using inline javascript. The return false means that the link won't load in the original window or tab.