Hi everyone does any one know how to surpress the browser default cntrl codes like cntrl S, cntrl A I have written some cntrl functions in jquery that perform tasks but once complete, the default cntrl code functionality always kicks in. any help on this would be appreciated. cheers
You can use this example - disables all cntr + combinations. I tested on IE 7 and Chrome. Should work on FireFox too. Won't work on Opera. Add onkeydown event for your control, for example: <textarea rows="10" cols="40" onkeydown="disable_cntr(event);" ></textarea> And here is function code: function disable_cntr(e) { if (e.ctrlKey) { if (e.preventDefault) { e.preventDefault(); //FireFox, Chrome } else { e.returnValue = false; //IE } } }