Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
how to hide developers tool code (html source) on pressing F12 in internet explorer with making F12 keypress disable.
Posted
Updated 20-Jul-17 1:34am

Hi Varun,

You cannot really disable the F12 on the client side.
What you can do is capture the key press event and handle that event when F12 was the pressed key (you could also check which browser type it is using Javascript [you specifically specified IE]), but it can easily be bypassed by clever users, so it's not a strong solution.

Another approach - You could (to some extent) "hide" your real Javascript by using Obfuscation [^]

Best,
H
 
Share this answer
 
Hi,

I think Microsoft provide this features to support to debug, test and speed up your webpage on the fly and without any need need of any third party application.


If we you want to hide the developer tool you can simply press F12 again or on the 'x' sigh at the top right.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900