O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

JavaScript and HTML are two different things. HTML is markup and JavaScript is code. So how do they interact? It all happens through a representation of your page, called the document object model, or the DOM for short. Where does the DOM come from? It’s created when the browser loads your page. Here’s how:


Cover of Head First JavaScript Programming


How do Javascript and HTML interact?