Horje
HTML5 Accesskey Attribute: you may not need JavaScript to add Keyboard Shortcuts Code Example
HTML5 Accesskey Attribute: you may not need JavaScript to add Keyboard Shortcuts
// Register the key handler 
document.addEventListener('keyup', function(e){
    // This would be triggered by pressing CTRL + A
    if (e.ctrlKey && e.keyCode == 65) {
        window.location.href = "http://ourcodeworld.com"; 
    }

    // Or with ALT + A
    //if (e.altKey && e.keyCode == 65) {
    //    window.location.href = "http://ourcodeworld.com"; 
    //}
}, false);




Javascript

Related
execute shell command from html button node js Code Example execute shell command from html button node js Code Example
asyncGenerator Code Example asyncGenerator Code Example
save specific attributes in table: sequelize Code Example save specific attributes in table: sequelize Code Example
jquery console.log object file Code Example jquery console.log object file Code Example
react live chat widget Code Example react live chat widget Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7