Use the mouse wheel or magnifying glass icons to zoom in and out on the map below. Click the Go Back and Go Forward buttons of the browser to navigate through the prior zoom levels. After each map zoom event, an event handler changes the hash value of the URL. The opposite happens during the body.onhashchange event handler, which modifies the map zoom level during page navigations.
Note If this sample does not work as described, check to see whether Internet Explorer is displaying it in IE8 mode. Press F12 to open Developer Tools, and then select Internet Explorer 8 Standards on the Document Mode menu. For information on Developer Tools, see Discovering Internet Explorer Developer Tools.