Created
January 29, 2014 03:37
-
-
Save mrmoje/8681407 to your computer and use it in GitHub Desktop.
A Pen by mrmoje.
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
<div onclick=myHandler() id="my element's id">→ Click Here! ←</div> |
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
function myHandler(){ | |
alert(myHandler.caller.arguments[0].target.id) | |
} |
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
div{cursor:pointer} | |
div:hover{text-decoration:underline} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment