Static Pages
Nothing alters the HTML code of the page while viewing it
Dynamic Pages
User interaction can cause changes to the current page (often via JavaScript being executed)
Two ways to add Dynamism
- Client-side scripting
Server-Side Scripting
Script executes on the server computer (i.e. someone else’s, like the host)
- Server computer is at risk
Client-Side Scripting
Script executes on client-YOUR-machine
- Your machine is at risk
DOM
Document Object Model
What is DOM
How JavaScript intereacts with a webpage to make changes to its HTML code, often with “document” commands