deostroll
deostroll

Reputation: 11975

Can I handle an ALT+TAB key press within my web page?

I realize this is a program switcher key combo in most OSs. Is there a possibility of capturing such an event in the web page via JavaScript?

Upvotes: 0

Views: 2905

Answers (2)

John Saunders
John Saunders

Reputation: 161773

Of course you can't capture this event, and of course you can't disable it. The browser doesn't own the computer, and you don't own the browser!

Why do you want to do this? Is this for an internal application, or one on the Internet, to be used by anyone?

Upvotes: 5

Noon Silk
Noon Silk

Reputation: 55082

No, but why would you want to?

Are you looking to do some onfocus or onblur? Maybe those events are useful for you.

Upvotes: 2

Related Questions