onkeydown = function(e){
if(e.ctrlKey && e.keyCode == 'S'.charCodeAt(0)){
e.preventDefault();
//your saving code
}
}
More Related Contents:
- install flash player automatically with javascript [closed]
- How to read each element of an array in jQuery? [closed]
- How to get a subset of a javascript object’s properties
- How does the new operator work in JavaScript?
- Why does javascript replace only first instance when using replace? [duplicate]
- Why would multiple simultaneous AJAX calls to the same ASP.NET MVC action cause the browser to block?
- return value after a promise [duplicate]
- How to make a link open multiple pages when clicked
- React – Preventing Form Submission
- ES6 modules in the browser: Uncaught SyntaxError: Unexpected token import
- Add two functions to window.onload
- Javascript – Generating all combinations of elements in a single array (in pairs)
- How to set breakpoints in inline Javascript in Google Chrome?
- Has Facebook sharer.php changed to no longer accept detailed parameters?
- What are useful JavaScript methods that extends built-in objects? [closed]
- Highlight Menu Item when Scrolling Down to Section
- Returning JSON array from a Django view to a template
- How to resolve Node.js ES6 (ESM) Modules with the TypeScript Compiler (TSC). TSC doesn’t emit the correct file-ext
- How do I subtract minutes from a date in JavaScript?
- Add a line of code to ALL functions
- How to convert an array into an object in javascript with mapped key-value pairs?
- What is the difference between ‘ and ” in JavaScript?
- Node.js mongodb driver async/await queries
- Update single value in item array | react redux
- How can I pass a reference to a function, with parameters? [duplicate]
- Javascript – Template Strings Don’t Pretty Print Objects
- Destructuring of es6 but passing dynamic variable
- Javascript function need allow numbers, dot and comma
- HTML form input tag name element array with JavaScript
- Javascript parse error on ‘\u2028’ unicode character