Created
October 29, 2012 16:15
-
-
Save paddykontschak/3974560 to your computer and use it in GitHub Desktop.
Always “hover” before you click!? Wrong.
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
<!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