Skip to content

Instantly share code, notes, and snippets.

@snowleung
Created December 5, 2014 04:26
Show Gist options
  • Save snowleung/245f3798f33f33b3c8b4 to your computer and use it in GitHub Desktop.
Save snowleung/245f3798f33f33b3c8b4 to your computer and use it in GitHub Desktop.
event_debug
<style type="text/css">
#word {
display: none;
}
</style>
<html>
<p id="word">word</p>
<form action="">
<input type="" onblur="test()"/>
<input type="submit" />
</form>
</html>
<script type="text/javascript">
function test() {
document.getElementById('word').style.display = 'block';
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment