Like title, i want create a function using javascript and php. This function will be process keyboard press. example, i dont need press ctrl and Prt Scr to capture screen. I want take it with javascript. No press key, just do it with javascript. HOW I CANT DO IT? Please help me!!!
Asked
Active
Viewed 281 times
-4
-
3No code? Show us what you have so far. – MortenMoulder Feb 10 '15 at 09:08
-
1So you want the keypress triggered or screenshot (of the whole screen) taken? If the latter, you can't do that, I'm willing to bet (because security) – Sergio Tulentsev Feb 10 '15 at 09:08
-
Isn't the key binding OS specific? You can't trigger that by using a website surely? – Andy Holmes Feb 10 '15 at 09:09
-
@AndyHolmes Correct. It's not possible to trigger it using the browser. – MortenMoulder Feb 10 '15 at 09:10
1 Answers
1
The Prt Sc (Print Screen) button cannot be checked through Javascript (or PHP for that matter..). It's a system bound button, which you can't trigger or check using the browser. Read the answer on this topic for more help: disable print screen key using javascript That also means you can't use the Prt Sc (Print Screen) button. You cannot trigger it with Javascript.

Community
- 1
- 1

MortenMoulder
- 6,138
- 11
- 60
- 116