Skip to content

Instantly share code, notes, and snippets.

@diminoten
Created July 30, 2014 20:43
Show Gist options
  • Save diminoten/92833e95aad061f4b1cd to your computer and use it in GitHub Desktop.
Save diminoten/92833e95aad061f4b1cd to your computer and use it in GitHub Desktop.
theFreak
<html>
<head>
<script src='script.js'></script>
</head>
<body>
<button id="button1" onClick="doSomething(this.id)">Do something</button>
</body>
</html>
function doSomething(element_id) {
alert(element_id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment