11.
What is the purpose of the oninput event in HTML?
12.
Consider the following HTML code: Which JavaScript code adds a click event listener to the button?
13.
Which method is used to remove an event listener from an HTML element in JavaScript?
14.
What is the purpose of the onmouseover event in HTML?
15.
Which event is triggered when a web page finishes loading?
16.
In JavaScript, what is the purpose of the addEventListener() method?
17.
Consider the following JavaScript code: document.addEventListener('keypress', function(event) { console.log('Key pressed:', event.key); }); What does this code do?
18.
Which event occurs when a user submits an HTML form?
19.
What does the preventDefault() method do in JavaScript event handling?
20.
Which statement accurately describes JavaScript event bubbling?