Skip to content

Instantly share code, notes, and snippets.

@chriscct7 chriscct7/index.html
Created Aug 27, 2016

Embed
What would you like to do?
The danger of using _blank tags
<html>
<head></head>
<body>
<p>This is my test page: <a target="_blank" href="test.html">Click here</a></p>
<p>Note, adding rel="noopener noreferrer" into the a element will solve this problem.</p>
</body>
</html
<html>
<head></head>
<body>
This is my second test page
<script language="javascript">
window.opener.location = 'https://www.google.com'
</script>
</body>
</html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.