Javascript Developer's Dictionary (developer's Library)
معرفی کتاب «Javascript Developer's Dictionary (developer's Library)» نوشتهٔ Alexander J. Vincent، منتشرشده توسط نشر Sams در سال 2002. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Javascript Developer's Dictionary (developer's Library)» در دستهٔ بدون دستهبندی قرار دارد.
__JavaScript Developer's Dictionary__ covers all the essential functions, methods, and objects of JavaScript in an easy-to-find, logical order. JavaScript, and each different version of JavaScript, interacts very differently with each variety of Web browser, leaving Web developers scrambling to write code that will work in all the major browsers. JavaScript Developer's Dictionary brings all these variants into one volume, breaking down every object in the JavaScript language and how it applies to each browser. Wherever possible, the book also provides workarounds for earlier versions of JavaScript and for direct inconsistencies. The emphasis throughout this book is on compatibility across many versions of Netscape and Internet Explorer. 0672322013......Page 1 Copyright © 2002 by Sams Publishing......Page 3 Contents at a Glance......Page 4 Table of Contents......Page 6 About the Author......Page 23 Tell Us What You Think!......Page 26 A Brief History of Time (or This Project, Anyway)......Page 28 XHTML as HTML: The Dictionary Standard......Page 29 What Does this Book Cover?......Page 30 Formatting of Script Examples......Page 31 PART I Core JavaScript......Page 34 CHAPTER 1 Object()......Page 36 Creating a New Object......Page 37 Properties......Page 45 Methods......Page 48 Example: Creating a Persistent Reference to this......Page 59 CHAPTER 2 Function( )......Page 64 Executing a Function......Page 65 Properties......Page 73 Methods......Page 77 Example: Using the Function() Objects’ Source Codes......Page 80 CHAPTER 3 Array()......Page 84 Description......Page 85 Properties......Page 88 Methods......Page 90 Example: An Extensible switch Function......Page 100 CHAPTER 4 String()......Page 104 Description......Page 105 Methods......Page 109 Example: Strings in HTML......Page 126 CHAPTER 5 Boolean()......Page 130 Description......Page 131 Properties......Page 133 Methods......Page 134 Example: Shorthand for an if Statement......Page 135 CHAPTER 6 Date()......Page 138 Description......Page 139 Methods......Page 142 Example: Detecting Daylight Savings Time......Page 161 CHAPTER 7 Number()......Page 164 Description......Page 165 Properties......Page 170 Methods......Page 173 Example: Implementing Complex Numbers in JavaScript......Page 176 Description......Page 184 Properties......Page 185 Methods......Page 188 Example: A Logarithm Function for Multiple Bases......Page 195 CHAPTER 9 RegExp( )......Page 198 Description......Page 200 Properties......Page 212 Methods......Page 221 Example: Regular Expressions and Text Exercises......Page 224 CHAPTER 10 Error( )......Page 228 Description......Page 229 Properties......Page 230 Methods......Page 235 Example: Creating and Using Errors......Page 236 CHAPTER 11 The Global Object and Statements......Page 240 Top-Level Objects......Page 241 Top-Level Functions......Page 242 Statements......Page 248 Controlling How a Script Runs......Page 260 CHAPTER 12 Operators......Page 264 Arithmetic Operators......Page 265 Comparison Operators......Page 269 Boolean Operators......Page 272 Bitwise Operators......Page 274 Word Operators......Page 277 CHAPTER 13 JavaScript Syntax......Page 282 Parentheses, Square Brackets, and Curly Braces......Page 283 Quote Marks......Page 285 Semicolons, Colons, Commas, and Periods......Page 286 Literals......Page 288 Comment Lines //, /* ... */......Page 289 CHAPTER 14 Conditional Compilation in Internet Explorer......Page 292 Description......Page 293 Statements......Page 294 Objects......Page 296 Compatibility with Netscape Browsers......Page 297 PART II Window and Client Objects......Page 300 CHAPTER 15 window......Page 302 Description......Page 303 Properties......Page 313 Methods......Page 333 HTMLFrameSetElement /.........Page 366 Description......Page 367 Properties......Page 368 Methods......Page 371 HTMLFrameElement/......Page 372 Description......Page 373 Methods......Page 380 HTMLIFrameElement/......Page 381 Properties......Page 382 Methods......Page 384 Example: A Basket of Windows......Page 385 CHAPTER 16 location......Page 390 Properties......Page 391 Methods......Page 396 Example: Sending Information from One Page to Another......Page 397 CHAPTER 17 history......Page 402 Properties......Page 403 Methods......Page 404 Example: Moving a Separate Frame Back......Page 405 CHAPTER 18 navigator......Page 408 Browser Sniffing, the Incorrect Way......Page 409 Properties......Page 411 Methods......Page 423 Example: Browser Sniffing, the Correct Way......Page 424 CHAPTER 19 screen......Page 434 Properties......Page 435 Example: Redirecting Based on Screen Resolution......Page 440 PART III Document Object Model for HTML Documents......Page 442 CHAPTER 20 Core DOM Objects......Page 444 Attr......Page 446 CDATASection......Page 448 CharacterData......Page 449 Comment......Page 453 Document......Page 454 DocumentFragment......Page 462 DocumentType......Page 464 DOMImplementation......Page 467 Element......Page 469 Entity......Page 476 EntityReference......Page 478 Node......Page 479 NamedNodeMap......Page 493 NodeList......Page 496 Notation......Page 497 ProcessingInstruction......Page 499 Text......Page 500 CHAPTER 21 HTMLElement......Page 504 Elements That Are HTMLElement Objects......Page 505 Properties......Page 510 Methods......Page 512 Methods......Page 522 CHAPTER 22 HTMLHtmlElement......Page 536 Properties......Page 537 Methods......Page 541 CHAPTER 23 HTMLDocument/ document......Page 542 Description......Page 543 Properties......Page 546 Methods......Page 563 Properties......Page 580 Methods......Page 586 CHAPTER 24 Head Elements......Page 588 Description......Page 590 Properties......Page 591 HTMLBaseElement/ ......Page 594 Properties......Page 595 Description......Page 597 Properties......Page 598 Example: Automatic Refreshing......Page 600 Description......Page 602 Properties......Page 603 Methods......Page 604 CHAPTER 25 Form Elements......Page 606 Description......Page 607 Properties......Page 612 Methods......Page 619 Description......Page 621 Properties......Page 622 Methods......Page 627 HTMLFieldSetElement Interface/.........Page 628 Description......Page 629 Properties......Page 630 HTMLIsIndexElement Interface/......Page 632 Description......Page 633 Properties......Page 634 HTMLLabelElement/.........Page 637 Description......Page 638 Properties......Page 639 Methods......Page 642 HTMLLegendElement/.........Page 643 Properties......Page 644 HTMLOptGroupElement/.........Page 647 Properties......Page 648 HTMLOptionElement/......Page 649 Properties......Page 650 Methods......Page 653 Description......Page 654 Properties......Page 656 Methods......Page 661 Description......Page 665 Properties......Page 666 Methods......Page 672 CHAPTER 26 Form Input Elements: HTMLInputElement......Page 676 Description......Page 677 Properties......Page 680 Methods......Page 688 CHAPTER 27 List Elements......Page 694 Properties......Page 696 Methods......Page 698 HTMLDListElement Interface......Page 699 Properties......Page 700 Methods......Page 701 HTMLLIElement Interface......Page 702 Properties......Page 703 Methods......Page 705 HTMLMenuElement Interface......Page 706 Properties......Page 707 Methods......Page 709 Properties......Page 710 Methods......Page 713 Properties......Page 714 Methods......Page 717 CHAPTER 28 Text Formatting Elements......Page 718 Five Unusual But Significant Text Formatting Elements......Page 721 Description......Page 726 Properties......Page 727 Methods......Page 738 Description......Page 740 Properties......Page 741 Description......Page 742 Properties......Page 743 Description......Page 744 Properties......Page 745 HTMLFontElement Interface/.........Page 747 Properties......Page 748 HTMLHeadingElement Interface / .........Page 751 Description......Page 753 Properties......Page 754 Methods......Page 756 Properties......Page 757 Description......Page 761 Properties......Page 762 Methods......Page 769 Description......Page 773 Properties......Page 774 Methods......Page 779 HTMLModElement Interface/.../.........Page 780 Description......Page 781 .........Page 784 Properties......Page 785 Methods......Page 786 Properties......Page 787 Methods......Page 789 HTMLPreElement Interface / .........Page 790 Properties......Page 791 Methods......Page 794 Properties......Page 795 Methods......Page 797 Description......Page 799 .........Page 800 Properties......Page 801 Methods......Page 802 CHAPTER 29 Table Elements......Page 804 Description......Page 805 Properties......Page 807 Methods......Page 822 Description......Page 826 Properties......Page 827 Methods......Page 829 Description......Page 830 Properties......Page 831 Methods......Page 839 Description......Page 840 Properties......Page 841 HTMLTableRowElement/.........Page 844 Properties......Page 845 Methods......Page 851 HTMLTableSectionElement/... / ... / .........Page 853 Properties......Page 854 Methods......Page 859 CHAPTER 30 Image Elements......Page 862 Description......Page 863 Properties......Page 867 Methods......Page 874 HTMLInputElement/......Page 875 Properties......Page 876 Methods......Page 877 HTMLMapElement/.........Page 879 Properties......Page 880 Methods......Page 882 HTMLAreaElement/......Page 883 Description......Page 884 Properties......Page 885 CHAPTER 31 Programmable Elements......Page 890 LiveConnect: Netscape’s Bridge to Java......Page 891 HTMLAppletElement/.........Page 892 Description......Page 893 Properties......Page 895 Methods......Page 899 Description......Page 900 Properties......Page 901 Methods......Page 903 Description......Page 904 Properties......Page 908 HTMLParamElement/......Page 915 Properties......Page 916 Methods......Page 917 Description......Page 918 Properties......Page 921 Methods......Page 924 Example: Reorganizing a Script......Page 925 CHAPTER 32 DOM-2 Events and Event Handlers......Page 934 DOM-2 Events Introduced: Listeners and Interfaces......Page 935 Events in Internet Explorer......Page 951 Netscape 4 and Events......Page 955 Properties......Page 958 Methods......Page 980 Description......Page 985 Methods......Page 986 Description......Page 987 Events in Netscape and Internet Explorer......Page 988 CHAPTER 33 Styling for HTML Elements......Page 1012 The Basics of CSS......Page 1014 Simple Selectors in CSS......Page 1015 Compound Selectors in CSS......Page 1018 The Order of Precedence in Styling, from Elements......Page 1019 The Order of Precedence in Styling, from Style Sheets......Page 1020 Activating and Deactivating Style Sheets......Page 1022 The !important Style Sheet Attribute......Page 1024 Object Models and Cascading Style Sheets......Page 1025 Netscape 4 and JavaScript Styling......Page 1030 Twelve CSS Properties......Page 1032 Properties......Page 1035 Methods......Page 1037 HTMLLinkElement//......Page 1038 Properties......Page 1039 Methods......Page 1043 CHAPTER 34 DOM-2 Range......Page 1044 Boundary Points for Element and Document Nodes......Page 1045 Boundary Points for Text Nodes......Page 1047 Description......Page 1048 Properties......Page 1053 Methods......Page 1056 Methods......Page 1076 Description......Page 1077 Methods......Page 1081 CHAPTER 35 Cookies......Page 1084 Cookies, HTTP, and JavaScript......Page 1085 The Syntax of Cookies......Page 1087 Using Cookies......Page 1089 John Krutsch’s Cookie Jar......Page 1090 Best Practices for Using Cookies......Page 1094 PART IV The Future......Page 1096 CHAPTER 36 XML-Related Technologies and Their DOMs......Page 1098 XML 1.0......Page 1099 DTD......Page 1101 XHTML 1.0: eXtensible HyperText Markup Language......Page 1106 Namespaces in XML......Page 1107 Scripting an XML Document: ......Page 1110 Modularization of XHTML and XHTML 1.1......Page 1112 XLink......Page 1114 XSLT 1.0: eXtensible Stylesheet Language, Transformations......Page 1115 XML Schemas......Page 1116 MathML 2.0: Mathematics Markup Language......Page 1117 SVG 1.0: Scalable Vector Graphics......Page 1118 XForms......Page 1122 Other XML Languages......Page 1123 Conclusion to the JavaScript Developer’s Dictionary......Page 1124 Index......Page 1126
دانلود کتاب Javascript Developer's Dictionary (developer's Library)