Also works if DevTools is undocked. Useful for when you want something to happen when DevTools is open.
๐บ Demo
<script src="https://cdn.jsdelivr.net/gh/nicolauns/[email protected]/devtools-detect.min.js"></script>
devtools.detect(function(status){
alert('Is DevTools open? ' + status);
});
Browser | Supported |
---|---|
Chrome | โ |
Firefox | โ |
Opera | โ |
Safari | โ |
Mobile Safari | โยน |
Edge | โ |
IE11 | โ |
IE10 | โ |