Module 12: Browser Control

CMPS 162: Introduction to Programming


JavaScript usually runs in the browser and thus there should be facilities to interact with it. For example, it is possible to get and set URLs, as well as navigating the browser history. We can also control the window’s size and can test for pop-up blockers.

Module Objectives

  • Show getting and setting the URL
  • Show getting and setting the URL another way
  • Illustrate forward and reverse
  • Show filling the window with content
  • Illustrate controlling the window’s size and location
  • Illustrate testing for popup blockers

Learning Resources

  • Module 12 Readings: Chapters 76 thru 81 from Myers

Learning Activities

  • Module 12 Assignment: Interactive Coding Exercises 76 thru 81

For Further Study

  • None

Leave a Reply

Your email address will not be published. Required fields are marked *