Is it possible to prohibit the opening of the browser debugger by JS, I know there is an opportunity to delete the page content when opening it, something like document.innerHTML = '' There was such, and both on F12, and from the menu of the browser.
How can such things be realized?

  • 2
    no, it's impossible. There was already a similar topic. Do not forget that the debugger can be opened before your page is loaded, so any of your client code can be debugged :-) - Grundy
  • You can not block the debugger, in addition there are text browsers, from which it will not save. You can only make part of the code unmodifiable. - Basil Jimmy
  • @VasilyukDmitry; You can only make part of the code unmodifiable . - how? - Grundy
  • And why is it even necessary? - Grundy

0