Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,869
- Creating & Extending
- 25,901
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
HTML
<button id="me">Click this button</button>
JavaScript
document.getElementById('me').addEventListener('click', function() {
alert('Hello');
}, false);
It’s fairly straightforward to do. See this demo. You could also use jQuery if you wanted instead.