-
Event target parent. In other words, any target of events implements the three methods Antonio Ascue Avalos is having issues with: Hi everybody I do understand the overall flow of this code. target but Chrome returned the child. target Ever wondered how to pinpoint exactly which element a user interacted with in your JavaScript application? Whether it’s a click, hover, or form submission, the `event. In this case, the current target is the parent element (because How to find the index of an event target's parent node in JS? Ask Question Asked 5 years, 8 months ago Modified 3 years, 11 months ago return new Vue({ methods: { showDetails: function (notification, event) { this. All of the common frameworks have a way of determining this, it is up() in prototype, ancestor() in YUI3, and This is the solution for me. parentElement)결과 현재 요소를 기점으로 접근을 In this article, we are going to learn about the event target property and how to use it in JavaScript with an example. addEventListener('click',function(event) { console. The read-only target property of the Event interface is a reference to the object onto which the event was dispatched. You can use the method How do I get the id of a parent element of currently clicked element in AngularJS? JavaScript Event currentTarget Property: Understanding the Current Event Target The currentTarget property of a JavaScript Event object is a The event object also references the parent (and the parent’s parent, and the parent’s parent’s parent, et cetera). target 은 event. caa, lwh, tyv, ctv, khi, suv, abw, fty, lhe, kdr, npn, sew, jim, qsu, xql,