Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
- <style>p {font-size:150px;text-align:center;}</style>
- </head>
- <body>
- <script>
- (function($){
- $('body').on( 'keyup', function(e){
- $(this).html('<p>' + e.key + '</p>');
- $(document).prop( 'title', e.key );
- });
- })(jQuery)
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement