Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <button>
- Fake button
- </button>
- <div style="z-index:100;position:absolute;top:0;left:0;border:1px solid black;background-color:green;height:50px;padding:10px">
- Press enter to see an alert (unless you're using IE!)
- </div>
- </body>
- </html>
- $(document).on('keypress', function(e){
- alert(e.which)
- })
Add Comment
Please, Sign In to add comment