© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. SimpsonHow JavaScript Works https://doi.org/10.1007/978-1-4842-9738-4_8

8. Manipulating and Interacting with HTML

Jonathon Simpson1  
(1)
Belfast, Antrim, UK
 

So far, we’ve only been looking at how we can create code to perform certain calculations in JavaScript. At some point, we’re going to want to convert that into actual user output which people can see on their screens. Since JavaScript’s main purpose has always been to add interactivity to web pages, there are many ways to achieve this.

In this chapter, we’ll be looking at how we can use JavaScript and more specifically the document Web API to create interactivity and actually affect what the user sees ...

Get How JavaScript Works: Master the Basics of JavaScript and Modern Web App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.