======================================================== https://stackoverflow.com/questions/7798748/find-out-whether-chrome-console-is-open/48287643#48287643 -------------------------------------------------------- detect firebug -------------------------------------------------------- if (window.console && window.console.firebug) { //is open }; -------------------------------------------------------- ======================================================== Files -------------------------------------------------------- [debugger-method] Very disruptive [request-animation-frame-method] The original example downloaded from the web, which detects whether the inspector is open or closed [tostring-method] this method won't work. [setinterval-method] test1.thml: earse a part of html when the inspector is open test2.html: not working hide-whole.html: erase the whole html when the inspector is open. -------------------------------------------------------- ==> Use 'hide-whole.html' ========================================================