I am developing a web application. I want to catch the keypress event with javascript / jquery while the user is browsing on another tab, i.e. while the tab in which my web application is running is inactive.
Is it possible to do that, with javascript or another technology?
Sorry. The simple answer is NO
The farthest you can go with javascript is to detect whether/when a window/tab becomes inactive. Read here.
But you sure can do it if you write your own browser plugins. But then again, I shudder to think how far that will get you.