Last active
October 11, 2015 21:58
-
-
Save Lammerink/3925291 to your computer and use it in GitHub Desktop.
HTML : Open Link in New Window
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
Open Link in New Window | |
Invalid, but works: | |
<a href="http://website.com" target="_blank">This link will open in new window/tab</a> | |
Valid, but obtrusive: | |
<a href="http://website.com" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;">This link will open in new window/tab</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment