Home » Javascript » Javascript: When does the event.target have .closest() or .matches() methods on delegated events?

Javascript: When does the event.target have .closest() or .matches() methods on delegated events?

Posted by: admin February 23, 2020 Leave a comment

Questions:

When you bind events to the document or window for delegate events, when the event is fired, what are all the circumstances when event.target doesn’t have .closest() or .matches() methods?

How to&Answers: