views:

187

answers:

2

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?

+2  A: 

No, but why would you want to?

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

Noon Silk
disable the alt+tab feature altogether
deostroll
You can't do that.
Noon Silk
onblur works for some reason! it is reliable to some extent. when we hit the windows key atleast in IE it loses focus...
deostroll
Very good :)
Noon Silk
When you figured out how to disable Alt+Tab, I felt a great disturbance in The Force, as if millions of voices suddenly cried out in terror and were suddenly silenced. I fear something terrible has happened.
Imagist
+5  A: 

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?

John Saunders
internal application. Not for the internet.
deostroll
So he does own the browser and transitively the computer :-)
Eric J.
Transitivity does is not implied. He may own the browser tab or window his user is using while he's using it, but that does not imply this application is so important that it supersedes anything else the user happens to be doing at the time.
John Saunders
This is truly an awful thing to do.
Imagist