tailieunhanh - JavaScript Bible, Gold Edition part 69

JavaScript Bible, Gold Edition part 69. 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. | 528 Part III Document Objects Reference syntax that is compatible with the earliest scriptable browsers. Besides the only significant additions to the defining points of the form object in newer browsers are those characteristics that all other HTML elements share. The true scriptable heart of the form object has been within the scripter s reach since NN2. FORM Object For HTML element properties methods and event handlers see Chapter 15. Properties Methods Event Handlers acceptCharset handleEvent onReset action reset onSubmit autocomplete elements encoding enctype length method name target submit Syntax Accessing FORM object properties or methods All window. . property method parameters All window. index . property method parameters All window. formName . property method parameters IE4 window. method parameters IE5 NN6 window. e emID .property method parameters About this object Forms and their elements are the most common two-way gateways between users and JavaScript scripts. A form control element provides the only way that users can enter textual information. Form controls also provide somewhat standardized and recognizable user interface elements for the user to make a selection from a predetermined set of choices. Sometimes those choices appear in the form of an on off checkbox in a set of mutually exclusive radio buttons or as a selection from a list. As you have seen in many Web sites the form is the avenue for the user to enter information that is sent to the server housing the Web files. Just what the server FORM Chapter 23 The Form and Related Objects 529 does with this information depends on the CGI Common Gateway Interface programs running on the server. If your Web site runs on a server directly under your control that is it is in-house or hosted by a service you have the freedom to set up all kinds of data-gathering or database search programs to .

TỪ KHÓA LIÊN QUAN