Answer:
The addEventListener() method is used to attach an event handler to an element in JavaScript.
You may be interested in:
Last updated on: November 15, 2026Posted by: ExamRadar
Last updated on: November 6, 2026Posted by: ExamRadar
Last updated on: October 30, 2026Posted by: ExamRadar
Last updated on: October 23, 2026Posted by: ExamRadar
Last updated on: October 21, 2026Posted by: ExamRadar
Last updated on: September 23, 2026Posted by: ExamRadar
Last updated on: July 15, 2026Posted by: ExamRadar
Last updated on: April 24, 2026Posted by: ExamRadar