Skip to content

Instantly share code, notes, and snippets.

@medwards
Last active December 11, 2015 23:09
Show Gist options
  • Save medwards/4674829 to your computer and use it in GitHub Desktop.
Save medwards/4674829 to your computer and use it in GitHub Desktop.
<html>
<body id="test">
<div id="element" style="display: none">foobar</div>
<a href="#" onclick="triggerMe(); return false;">reveal</a>
<a href="#" onclick="triggerMeToo(); return false;">wipe</a>
<script type="text/javascript">
function triggerMe() {
document.getElementById("element").style.display = 'block';
}
function triggerMeToo() {
document.getElementById("test").innerHTML = "whobar";
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment