This cannot be done from a web page.
Even if you turn off the right click and turn off the default behavior for F12 , Ctrl + Shift + I and Ctrl + Shift + J , there is no way to stop the user from opening Dev Tools on another page and navigating to your page using Dev Tools is already open.
Alternatively, you can access Dev Tools by going to Menu> Tools> Developer tools , which cannot be prevented by any website.
apsillers Dec 18 '13 at 14:52 2013-12-18 14:52
source share