Created
October 15, 2018 13:58
-
-
Save awkale/920352203d77aa840ed14be8f79c713e to your computer and use it in GitHub Desktop.
#HTML #cheatsheet
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
<!-- The page we're linking to gains partial access to the linking page via the window.opener object. --> | |
target='_blank' | |
<!-- to prevent access, add --> | |
rel="noopener" | |
<!-- FF does not support "noopener" so add this --> | |
rel="noopener noreferrer" | |
<!-- window.open(); you're also "vulnerable" to this, so always reset the "opener" property --> | |
<script> | |
var newWnd = window.open(); | |
newWnd.opener = null; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment