279Chapter 16 .Window and Frame Objects To resize
279Chapter 16 .Window and Frame Objects To resize the window such that it occupies all screen real estate (except for the Windows Taskbar and Macintosh menubar), use the screenobject properties that calculate the available screen space: window.resizeBy(screen.availWidth, screen.availHeight) This action, however, is not precisely the same in Windows as maximizing the window. To achieve that same effect, you must move the window to coordinates -4, -4 and add eight to the two parameters of resizeBy(): window.moveTo(-4,-4) window.resizeTo(screen.availWidth + 8, screen.availHeight +
This hides the window s own four-pixel wide border, as occurs during OS- induced window maximizing. See also the screenobject discussion (Chapter 28) for more OS-specific details. In practice, NN4 does not give reliable results setting a window s size via the resizeTo() method. On some platforms, the dimensions are applied to the inner width and height, rather than outer. If a specific outer size is necessary, use the NN- specific window.outerHeightand window.outerWidth properties instead. Navigator imposes some security restrictions for maximum and minimum size for a window. For both methods, you are limited to the viewable area of the screen and visible minimums unless the page uses signed scripts (see Chapter 46). With signed scripts and the user s permission, for example, you can adjust windows beyond the available screen borders. On the CD-ROM Example (with Listing 16-30) on the CD-ROM Related Items: window.outerHeight, window.outerWidth properties; window.moveTo(), window.sizeToContent() methods. routeEvent(event) Returns: Nothing. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . If you turn on NN4-specific event capturing in the window, document, or layer object (via their respective captureEvents()methods), the handlers you assign to those events really capture those events, preventing them from ever reaching their intended targets. For some page designs, this is intentional, as it allows the higher-level object to handle all events of a particular type. But if your goal is to perform some preprocessing of events before they reach their destination, you need a way to pass that event along its regular path. That s what the routeEvent() method is for. windowObject.routeEvent()
We recommend high quality webhost to host and run your jsp application: christian web host services.