I Want to catch Ctrl+S in Chrome, and prevent the default browser behavior to save the page. How?
(Just posting the question & answer as I
document.onkeydown = function (e) { e = e || window.event;//Get event if (e.ctrlKey) { var c = e.which || e.keyCode;//Get key code switch (c) { case 83://Block Ctrl+S e.preventDefault(); e.stopPropagation(); break; } } };