210 Part III .Document Objects Reference By assigning
210 Part III .Document Objects Reference By assigning the checkForEnter()function to each field s onKeyPress event handler, you suddenly add some extra power to a typical HTML form. You can intercept Ctrl+keyboard combinations (letters only) in HTML pages most effectively in Internet Explorer, but only if the browser itself does not use the combination. In other words, you cannot redirect Ctrl+key combinations that the browser uses for its own control. The onKeyPress keyCode value for Ctrl+combinations ranges from 1 through 26 for letters A through Z (except for those used by the browser, in which case no keyboard event fires). Example (with Listing 15-41) on the CD-ROM Related Item: String.fromCharCode() method. onLoseCapture NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility The onLoseCapture event handler fires whenever an object that has event capture turned on no longer has that capture. Event capture is automatically disengaged when the user performs any of the following actions: .Gives focus to any other window .Displays any system modal dialog box (for example, alert window) .Scrolls the page .Opens a browser context menu (right-clicking) .Tabs to give focus to the Address field in the browser window A function associated with the onLoseCapture event handler should perform any cleanup of the environment due to an object no longer capturing mouse events. Example on the CD-ROM Related Items: releaseCapture(), setCapture() methods. On the CD-ROM On the CD-ROM elementObject.onLoseCapture
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.