Created
March 22, 2016 12:32
-
-
Save withgallantry/0ee180fb814c0682be5e to your computer and use it in GitHub Desktop.
Protect against window.opener
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
var w = window.open(href); | |
w.opener = null; | |
w.location = this.href; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment