June 2025
Beginner
817 pages
31h 30m
English
HTML elements such as a simple link or a button to submit a form perform the intended actions when events occur, even without JavaScript. For example, clicking on a link triggers a click event, which usually causes the web browser to load a new web page. Clicking a Submit button on a form also triggers a submit event, which submits the form to the web server.
Certain events, as just mentioned, are handled by the web browser in such a way that it executes a default action without the need to set up a special event handler function in JavaScript.
Here’s a simple example that demonstrates this:
<a class="aLink" href="https://www.rheinwerk-computing.com/">A link</a>
Now, if you want to take control ...
Read now
Unlock full access