tailieunhanh - JavaScript Bible, Gold Edition part 202

JavaScript Bible, Gold Edition part 202. 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. | CD-502 Part VI Appendixes Listing 25-6 continued SCRIPT HEAD BODY onSubmit checkIt this return false FORM Enter any positive integer INPUT TYPE text NAME numeric onChange checkIt P FORM BODY HTML TEXTAREA Element Object Properties cols rows NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Use The Evaluator to play with the cols and rows property settings for the Results textarea on that page. Shrink the width of the textarea by entering the following statement into the top text box 0 . 30 And make the textarea one row deeper 0 . Appendix F Examples from Parts III and IV CD-503 Methods createTextRange NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See the example for the method in Chapter 19 to see how to control the text insertion pointer inside a TEXTAREA element. Chapter 26 Examples The following sections contain examples from Chapter 26 Select Option and FileUpload Objects. SELECT Element Object Properties length NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See Listing 26-1 for an illustration of the way you use the length property to help determine how often to cycle through the repeat loop in search of selected items. Because the loop counter i must start at 0 the counting continues until the loop counter is one less than the actual length value which starts its count with 1 . CD-504 Part VI Appendixes multiple NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example The following statement toggles between single and multiple selections on a SELECT element object whose SIZE attribute is set to a value greater than 1 0 . 0 . options index NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See Listings 26-1 through 26-3 in the printed chapter for examples of how the options array references information about the .

TỪ KHÓA LIÊN QUAN