Created
November 13, 2017 13:19
-
-
Save ultim8k/c17ba90b5b6b9f1f56a71b596923d5db to your computer and use it in GitHub Desktop.
This file contains hidden or 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 target="_blank" rel="noopener noreferrer" href="...">user safe link</a> | |
<script> | |
// New window that leads user generated links shouldn't have access to previous window object. | |
var nw = window.open(); | |
nw.opener = null; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment