How to detect if browser console / inspector is *open*?
问题 What's the best way to determine if the user has the browser console (i.e. firebug, webkit inspector, Opera dragonfly) open ? (I.e. I'm not interested in merely detecting the presence of the console object in script. I want to know when the user has actually opened the debugger panel. Ideally across the major browsers (IE/Safari/Chrome/Firefox... and even mobile browsers if possible) 回答1: If you are willing to accept an interference for the user, you could use the debugger statement, as it is