September 2024
Beginner to intermediate
985 pages
35h 37m
English
To trigger a function on user interactions within a web page, three steps are required:
Select the element on the web page that should respond to the user interaction. For example, if you want a function to be triggered when the user clicks on a column heading of a table, you must select the corresponding <th> element beforehand.
Specify the event that is to be caught. As you will see in a moment, there are many different types of events. For example, it’s possible to capture mouse clicks, keystrokes, mouse movements, and much more. This step is also called binding an event to an element.
Specify the function to be called. Last but not least, you need to define the function to be called when the corresponding ...
Read now
Unlock full access