Created
January 30, 2012 13:04
-
-
Save user24/1704297 to your computer and use it in GitHub Desktop.
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
<html> | |
<head> | |
<script> | |
function foo() { | |
alert('bar'); | |
} | |
document.onclick = foo; | |
</script> | |
<script> | |
window.onload = function() { | |
var el = document.getElementsByTagName('script')[0]; | |
document.head.removeChild(el); | |
} | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment