Skip to content

Instantly share code, notes, and snippets.

@scottgarner
Created June 14, 2014 21:26
Show Gist options
  • Save scottgarner/bc0c449e00e370b9bd76 to your computer and use it in GitHub Desktop.
Save scottgarner/bc0c449e00e370b9bd76 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$('document').ready(function() {
$('body').keyup(function(e){
if(e.keyCode == 32){
window.location = 'http://google.com/';
}
});
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment