0
Is there any way to disable or hide the inspect element option when the person right-clicking or Ctrl+Shift+I on a web page?
0
Is there any way to disable or hide the inspect element option when the person right-clicking or Ctrl+Shift+I on a web page?
Browser other questions tagged php javascript html
You are not signed in. Login or sign up in order to post.
Not because the user owns the operating system and the browser, and has full control over it. He can even save the page to the computer and access the code. And there are other ways to inspect, by pressing F12, in the browser menu and so on :) CTRL+U tb will open the source code...
– Sam
you can cancel Handler from the right button, but I’ve never seen anyone lock Ctrl+Shift+i or F12
– Murilo Melo
All right, thanks for explaining!
– Eddy
@Murilogambôa not even that, if the user wants. Simply change the browser settings so that the right button is not intercepted (usually in advanced options and/or flags).
– Bacco
Frankly, what you need is to solve another problem that is not in the question. In normal situations nothing justifies this need (but can [Dit] the post if it actually has any real reason)
– Bacco
@Bacco was just a doubt, because I thought I could block in the same way that it is possible to block Ctrl + u, for example. But thanks for the answers.
– Eddy
Can’t block control + u, just make it harder
– Bacco
Well, I got it right-click on Ctrl + u with the following script: $(Document). ready(Function(){ $(Document). keydown(Function(e){ var key=window.event.keycode; if (key==123){ Event.returnValue=false; } var Ctrl=window.event.ctrlKey; if(Ctrl && e.which == 85){ Refalse turn; } }); $(Document). ready(Function(){ $(Document). bind("contextmenu",Function(e){ Return false; }); }); });
– Rogerio Santos