Skip to content

Inspecting an element that disappears on blur

Posted on:August 17, 2023

The easiest way to inspect an element that disappears on blur or mouse out is to trigger a debugger after a set amount of time. You can copy and paste the following into the console tab in dev tools to trigger a debugger two seconds after hitting the Enter key. You can adjust the time as needed.

setTimeout(() => {
  debugger;
}, 2000);

Then you can inspect the element as usual in the elements tab in dev tools.