Skip to content

Instantly share code, notes, and snippets.

@paddykontschak
Created October 29, 2012 16:15
Show Gist options
  • Save paddykontschak/3974560 to your computer and use it in GitHub Desktop.
Save paddykontschak/3974560 to your computer and use it in GitHub Desktop.
Always “hover” before you click!? Wrong.
<!doctype html>
<head>
<!-- Taken from http://www.frameloss.org/2012/10/28/hover-fail/ --->
<script>
function tricked() {
document.getElementById("naughty").href="http://www.frameloss.org";
}
</script>
</head>
<body>
<a href="http://www.google.com" onclick="tricked()" id="naughty">www.google.com</a>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment