Created
June 27, 2015 13:27
-
-
Save KevinKu/66841a54df4ef95fa7b5 to your computer and use it in GitHub Desktop.
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
<html> | |
<head></head> | |
<body> | |
<script> | |
function show() | |
{ | |
alert("hihi"); | |
} | |
function change() | |
{ | |
document.getElementById("test").onclick = function(){hello();}; | |
} | |
function hello() | |
{ | |
alert("hello"); | |
} | |
</script> | |
<a id="test" onclick="show()" > test </a> | |
<a onclick="change()"> change </a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment