How do I go about capturing the CTRL + S event in a webpage?
I do not wish to use jQuery or any other special library.
Thanks for your
Oops you wanted simultaneous, changed code to reflect your scenario
function iskeyPress(e) { e.preventDefault(); if (e.ctrlKey&&e.keyCode == 83) { alert("Combination pressed"); } return false;//To prevent default behaviour }
Add this to body