👤

what are javascript events give 2 example​

Sagot :

what are javascript events give 2 example

→ JavaScript's interaction with HTML is handled through events that occur when the user or the browser manipulates a page. When the page loads, it is called an event. When the user clicks a button, that click too is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc.

[tex]\pink{{\sf{Carry\:On\:Learning}}}[/tex]

Answer:

❮ Previous Next ❯ HTML events are "things" that happen to HTML elements. When JavaScript is used in HTML pages, JavaScript can "react" on these events.

Examples:

-When the user clicks a button, that click too is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc.

-Here are some examples of HTML events:

-An HTML web page has finished loading

-An HTML input field was changed

-An HTML button was clicked