tailieunhanh - JavaScript Bible, Gold Edition part 92
JavaScript Bible, Gold Edition part 92. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 758 Part III Document Objects Reference return a null value for the keyCode property during onKeyPress events. In other words the keyCode property for onKeyPress events is more like a character code than a key code. To capture the exact keyboard key that the user presses use either the onKeyDown or onKeyUp event handler. For these events the event object captures a numeric code associated with a particular key on the keyboard. For the character keys this varies with the language assigned as the system language. Importantly there is no distinction between uppercase or lowercase The A key on the Latin keyboard returns a value of 65 regardless of the state of the Shift key. At the same time however the press of the Shift key fired its own onKeyDown and onKeyUp events setting the keyCode value to 16. Other non-character keys arrows page navigation function and similar have their own codes as well. This gets very detailed including special key codes for the numeric keyboard keys that are different from their corresponding numbers along the top row of the alphanumeric keyboard. Be sure to see the extensive section on keyboard events in Chapter 15 for examples of how to apply the keyCode property in applications. Example with Listing 29-16 on the CD-ROM Related Items onKeyDown onKeyPress onKeyUp event handlers. nextPage Value String Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility The nextPage property is applicable only if your Windows page uses a TemplatePrinter behavior. Values of this property are one of the following strings left right or an empty string. For more information about the TemplatePrinter behavior for Windows-only versions of see http workshop browser hosting printpreview reference behaviors propertyName Value String Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility IE Chapter 29 Event Objects 759 The propertyName property is filled only after an .
đang nạp các trang xem trước