js_tutorial
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
sin ( ) ............................................................................................................................................................ 303<br />
sqrt ( ) .......................................................................................................................................................... 304<br />
tan ( ) ........................................................................................................................................................... 305<br />
toSource ( ) .................................................................................................................................................. 306<br />
27. RegExp .................................................................................................................................................. 308<br />
Brackets ....................................................................................................................................................... 308<br />
Quantifiers ................................................................................................................................................... 309<br />
Literal Characters......................................................................................................................................... 310<br />
Metacharacters ........................................................................................................................................... 311<br />
Modifiers ..................................................................................................................................................... 311<br />
RegExp Properties ....................................................................................................................................... 312<br />
constructor .................................................................................................................................................. 312<br />
global ........................................................................................................................................................... 313<br />
ignoreCase ................................................................................................................................................... 314<br />
lastIndex ...................................................................................................................................................... 316<br />
multiline....................................................................................................................................................... 317<br />
source .......................................................................................................................................................... 318<br />
RegExp Methods .......................................................................................................................................... 319<br />
exec ( ) ......................................................................................................................................................... 320<br />
test ( ) .......................................................................................................................................................... 321<br />
toSource ( ) .................................................................................................................................................. 322<br />
toString ( ) .................................................................................................................................................... 323<br />
28. DOM ..................................................................................................................................................... 325<br />
The Legacy DOM .......................................................................................................................................... 326<br />
The W3C DOM ............................................................................................................................................. 332<br />
The IE 4 DOM ............................................................................................................................................... 336<br />
DOM Compatibility ...................................................................................................................................... 340<br />
PART 3: JAVASCRIPT ADVANCED ............................................................................................. 342<br />
29. Errors and Exceptions ........................................................................................................................... 343<br />
Syntax Errors................................................................................................................................................ 343<br />
Runtime Errors ............................................................................................................................................ 343<br />
Logical Errors ............................................................................................................................................... 344<br />
The try...catch...finally Statement ............................................................................................................... 344<br />
The throw Statement .................................................................................................................................. 348<br />
The onerror( ) Method ................................................................................................................................ 349<br />
30. Form Validation .................................................................................................................................... 352<br />
Basic Form Validation .................................................................................................................................. 354<br />
Data Format Validation ............................................................................................................................... 355<br />
31. Animation ............................................................................................................................................. 357<br />
Manual Animation ....................................................................................................................................... 358<br />
Automated Animation ................................................................................................................................. 359<br />
Rollover with a Mouse Event ....................................................................................................................... 360<br />
32. Multimedia ........................................................................................................................................... 363<br />
viii