Document JavaScript Tutorial

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


    
    
    
    
    
    
    press a key within this document.