Sams Teach Yourself JavaScript in 24 HoursSams Teach Yourself JavaScript in 24 Hours serves as an easy-to-understand tutorial on both scripting basics and JavaScript itself. The book is written in a clear and personable style with an extensive use of practical, complete examples. The book includes material on the latest developments in JavaScript and Web scripting. |
Contents
Introduction | 1 |
Versions of JavaScript | 11 |
Exercises | 17 |
3 | 22 |
How JavaScript Programs Work | 33 |
Learning JavaScript Basics | 41 |
19 | 50 |
20 | 59 |
Using Graphics and Animation | 183 |
Using Graphics and Animation | 187 |
Moving on to Advanced JavaScript Features | 199 |
Creating Custom Objects | 215 |
Creating Output | 222 |
Working with Sounds and PlugIns | 225 |
Working with Dynamic HTML DHTML | 255 |
Using Dynamic HTML DHTML | 275 |
Using Strings and Arrays | 63 |
Testing and Comparing Values | 79 |
Exercises | 89 |
Using Math and Date Functions | 103 |
The Document Object Model DOM | 115 |
Responding to Events | 131 |
Responding to Events | 133 |
11 | 144 |
Using Windows and Frames | 147 |
Getting Data with Forms | 165 |
Getting Data with Forms | 169 |
Using Advanced DOM Features | 289 |
Putting it all Together | 303 |
Creating a JavaScript Game | 319 |
Creating DHTML Applications | 337 |
JavaScript Tips and Tricks | 351 |
Appendices | 363 |
APPENDIX B Tools for JavaScript Developers | 369 |
JavaScript Quick Reference | 377 |
APPENDIX E DOM Quick Reference | 387 |
393 | |
Other editions - View all
Common terms and phrases
ActiveX alert dialog box assigns attribute body book's button Card object cbox check box color Computer cookie Date object debugging default define detect DHTML dialog box displays an alert Document Object Model draw poker dynamic error message event handler example executed Favorites Tools Help Figure frame global variables graphics head Hour HREF http://www.jsworkshop.com image map img border=0 infinite loop input TYPE="TEXT Java JavaScript program JavaScript statements keyword Listing load loop Math method Microsoft Internet Explorer Modify mouse navigator object Netscape Netscape Navigator Netscape's node onMouseOver option parameter plug-in prompt properties Quiz Test random number return true rollovers score script LANGUAGE="JavaScript scrolling message Search Favorites server simple script specify status line String object style sheet switch statement syntax text field timeout type="text/javascript VBScript window object