javascript - prevent default action for tab key in chrome? -


i want prevent default action when tab key pressed , wanna in chrome, can't find solution that, can please ?

i using jquery

here's article on how detect chrome: http://javascriptly.com/2008/09/javascript-to-detect-google-chrome/

and question: disable tab key on specific div might on disabling tab key. if able combine both yourself, you've got working.

the disable function become like:

$('.textarea').on('keyup mouseup', function(e) {   if(e.which == 9) { e.preventdefault(); } }); 

e.which = 9 tab key according last link given. if able wrap browser detection around yourself, guess you've got working example.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -