3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mouseleave などで消えてしまう要素を setTimeout + debugger で無理やり捕まえる

Posted at
  1. Google Chrome Dev Tool のコンソールで setTimeout + debugger を仕込む
  2. 時間が切れないうちに表示したい要素を表示させる
  3. setTimeout -> debugger が発火して要素選択できるようになる (mouseleave しても停止中なので消えない)
setTimeout(function() {
  debugger;
}, 3000);

CSS Trick にも同じ内容のものがあった

Set a Timed Debugger To Web Inspect Hard-To-Grab Elements
https://css-tricks.com/set-timed-debugger-web-inspect-hard-grab-elements/

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?