Get "PHP 8 in a Nutshell" (Now with PHP 8.5)
Amit Merchant
Amit Merchant

A blog on PHP, JavaScript, and more

Inspect disappearing elements in Chrome

There are times when you want to inspect elements that only appear when you hover over them. For instance, tooltips or inputs which gets hidden on focus out or blur. It’s difficult to inspect them due to this behaviour.

Thankfully in Chrome, this can be circumvented using an option called “Emulate a focused page” in Dev Tools.

Open Dev Tools, press Ctrl / Cmd + Shift + P, and toggle this option. You should be able to inspect the disappearing elements now.

Was that useful? Consider leaving a

Tip

👋 Hi there! This is Amit, again. I write articles about all things web development. If you enjoy my work (the articles, the open-source projects, my general demeanour... anything really), consider leaving a tip & supporting the site. Your support is incredibly appreciated!

Comments?