Project II: Using JavaScript to Talk Between Frames

Sure enough, there is a new issue that the boss wants you to look at on the Web site. Currently, on the bottom frame of the site that holds the main navigation, the graphics for the section you are in are highlighted (Figure 5-2). One of the other programmers has written the JavaScript to take care of changing the images when they are clicked on, but another problem has arisen that your boss needs you to take care of.

Figure 5-2. A Stitch secondary page's bottom navigation bar.

If the user clicks the forward or backward buttons of the browser instead of actually clicking on the navigation images, ...

Get Essential JavaScript™ for Web Professionals, Second Edition 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.