Home > Articles

  • Print
  • + Share This
This chapter is from the book

Summary

In this chapter, you learned about the differences between server-side scripting and client-side scripting, but mostly you learned a lot about the Document Object Model (DOM), which creates a hierarchy of web browser and document objects that you can access via JavaScript. You learned how you can use the document object to work with documents, and you used the history and location objects to control the current URL displayed in the browser.

Additionally, you learned the methods and properties you can use to manage DOM objects, and you created sample scripts to hide and show elements within a page, modify existing text, and add to existing text. You also learned how to use HTML and CSS to define a positionable container, and how you can use positioning properties dynamically with JavaScript.

By applying the knowledge you’ve gained here, you can use client-side scripting to make elements on a web page respond to user interactions. Although they are simple in their construction, these types of interactions are some of the basic JavaScript-based interactions that form the foundation of web applications.

  • + Share This
  • 🔖 Save To Your Account