Web site designers - 256 Part III . Document Objects Reference back()
Friday, December 21st, 2007256 Part III . Document Objects Reference back() forward() Returns: Nothing. Compatibility NN2 NN3 NN4 . NN6 . IE3/J1 IE3/J2 IE4 IE5 IE5.5 The purpose of the window.back()and window.forward() methods in NN4 is to offer a scripted version of the global back and forward navigation buttons, while allowing the history object to control navigation strictly within a particular window or frame as it should. These window methods did not catch on in IE (and the window object is out of the scope of the W3C DOM Level 2), so you are better off staying with the historyobject s methods for navigating through browser history. For more information about version compatibility and the back and forward navigation, see the history object in Chapter 17. On the Example on the CD-ROM CD-ROM Related Items: history.back(), history.forward(), history.go() methods. captureEvents(eventTypeList) Returns: Nothing. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . In Navigator 4, an event filters down from the window object and eventually reaches its intended target. For example, if you click a button, the click event first reaches the window object; then it goes to the document object; and eventually (in a split second) it reaches the button, where an onClick event handler is ready to act on that click. The NN4 trickle-down event propagation mechanism allows window, document, and layer objects to intercept events and process them prior to reaching their intended targets (or preventing them from reaching their destinations entirely). But for one of these outer containers to grab an event, your script must instruct it to capture the type of event your application is interested in preprocessing. If you want the window object to intercept all events of a particular type, use the window.captureEvents()method to turn that facility on. windowObject.captureEvents()
In case you need quality webspace to host and run your web applications, try our personal web hosting services.