Created
September 9, 2015 11:51
-
-
Save nicoknoll/549d0799906b15f2913a to your computer and use it in GitHub Desktop.
How to open a link in a new 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
var url = 'http://nico.is'; | |
var win = window.open(url, '_blank'); | |
win.focus(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment