Document JavaScript Tutorial

The onKeyPress event handler specifies what should happen when any key is pressed when the Document object is in focus.


    
    
    
    
    
    
    press a key within this document.