Freddy Montes

Costa Rica (GMT-6)

Frontend Developer with a graphic design degree. UX/UI and Javascript crafter. More

Select HTML element base on position

October 30, 2020

This post was originally posted on my Instagram account.

Select HTML element base on position

I was browser VisBug code because I want to learn how they do their tooling for an idea I have for #dotcms edit mode and I notice this method elementFromPoint(x,y) and I was like 🤯.

I can’t believe I didn’t know that the DOM #api had this method and it will be very helpful for the upgrade I’m planning to do in the page editor at DotCMS.

Did you knew this method? Let’s chat in the comments on ideas for use it.

© 2020, Built with pure 🔥 and Gatsby