JavaScript: capture key press without placing an input element on the page?

Posted by powerboy on Stack Overflow See other posts from Stack Overflow or by powerboy
Published on 2010-05-21T01:11:53Z Indexed on 2010/05/21 1:20 UTC
Read the original article Hit count: 240

Filed under:

How to capture key press, e.g., Ctrl+Z, without placing an input element on the page in JavaScript? Seems that in IE, keypress and keyup events can only be bound to input elements (input boxes, textareas, etc)

© Stack Overflow or respective owner

Related posts about JavaScript