Professional web hosting - 278 Part III . Document Objects Reference their

278 Part III . Document Objects Reference their intended target. In fact, by releasing capture from a higher object, released events don t bother stopping at those higher objects anymore. Parameters for the releaseEvents() method are one or more event types. Each event type is its own entity, so if your window captures three event types at one point, you can release some or all of those event types as the visitor interacts with your page. For example, if the page loads and captures three types of events, as in window.captureEvents(Event.CLICK | Event.KEYPRESS | Event.CHANGE) you can later turn off window event capture for all but the click event: window.releaseEvents(Event.KEYPRESS | Event.CHANGE) The window still captures and processes click events, but keyPress and change events go directly to their target objects. A new mechanism (removing an event listener) is implemented in NN6 based on the W3C event model. See Chapters 14 and 29 for more information. Related Items: window.captureEvents(), window.routeEvent() methods. resizeBy(deltaX,deltaY) resizeTo(outerwidth,outerheight) Returns: Nothing. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . . Starting with NN4 and IE4, scripts can control the size of the current browser window on the fly. While you can set the individual inner and (in NN) outer width and height properties of a window, the resizeBy() and resizeTo() methods let you adjust both axis measurements in one statement. In both instances, all adjustments affect the lower-right corner of the window: To move the top-left corner, use the window.moveBy()or window.moveTo() methods. Each resize method requires a different kind of parameter. The resizeBy() method adjusts the window by a certain number of pixels along one or both axes. Therefore, it is not concerned with the specific size of the window beforehand only by how much each axis is to change. For example, to increase the current window size by 100 pixels horizontally and 50 pixels vertically, the statement is window.resizeBy(100, 50) Both parameters are required, but if you only want to adjust the size in one direction, set the other to zero. You may also shrink the window by using negative values for either or both parameters. You find a greater need for the resizeTo() method, especially when you know that on a particular platform the window needs adjustment to a specific width and height to best accommodate that platform s display of form elements. Parameters for the resizeTo() method are the actual pixel width and height of the outer dimension of the window the same as NN s window.outerWidth and window.outerHeight properties. windowObject.resizeBy()
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply