Hans Sprecher

out there.

Ivy League trained philosopher turned product manager and web developer with passion for engaging online experiences. Fanatical about HTML, CSS, JS, UI, UX and other acronyms.


  • hanssprecher.com Return home.
  • Articles Read more articles.
  • Experiments Check out more demos.

  • Hover on an element

    See the bar at the bottom with white text? That tells you what you're hovering over. It gives the Xpath—the element with any classes (.) or ID (#). Each level is separated by the parent selector (>).

    The DOM is recursively traversed until the 'HTML' element is reached, and then the Xpath is printed out.

    This code uses a universal matcher, so may not be good for production environments.