Difference between activeElement, elementFromPoint and target

Viewed 1178

I would like to know the difference between the following methods and in which scenario each should be used. I have created a Jsbin DEMO which shows all of these give the same result on click handler.

  • document.activeElement
  • document.elementFromPoint(x,y)
  • event.target
1 Answers
Related