Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 702 Bytes
<!doctype html>
<meta charset="utf-8">
<title>Keyboard Events</title>
<link rel="stylesheet" href="../include/style.css">
Example from <a href=""><em>Foundation HTML5 Animation with JavaScript</em></a>
<aside>Open debugging console in web browser and press key.</aside>
window.onload = function () {
function onKeyboardEvent (event) {
window.addEventListener('keydown', onKeyboardEvent, false);
window.addEventListener('keyup', onKeyboardEvent, false);