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);
Also in HTML:
- decode HTML Entities react
- html doctype
- m3u8 ffmpeg download
- spring boot banner generator
- how to write superscript in html
- html phone number input
- how to add image in html from a folder
- html background image
- how to add lines between div rows html
- html w3school
- how to add space in html
- how do you code an image in html
- ionic menu
- search/find content ftp html
- modal lightning salesforce
- ionic textarea
- HTML Image full screen width
- bootstrap ul no style
- how to change the size of an image in html
- include javascript jquery file in html
- html center text
- how to link javascript to html
- html remove hittest from element
- html img src