I want to trigger the onkeydown event on the html page to do some actions. I have the following code:
document.onkeydown = function(){
alert('dd');
};
Is it possible to trigger this event on whole page or is it limited to only editable html elements?