
JavaScript Pocket Reference
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Previous edition

Content
- Intro
- Table of Contents
- Preface
- Chapter 1. Lexical Structure
- Comments
- Identifiers and Reserved Words
- Optional Semicolons
- Chapter 2. Types, Values, and Variables
- Numbers
- Text
- String Literals
- Boolean Values
- null and undefined
- The Global Object
- Type Conversions
- Variable Declaration
- Chapter 3. Expressions and Operators
- Expressions
- Initializers
- Property Access
- Function Definition
- Invocation
- Object Creation
- Operators
- Arithmetic Operators
- Relational Operators
- Logical Expressions
- Assignment Expressions
- Evaluation Expressions
- Miscellaneous Operators
- The Conditional Operator (?:)
- The typeof Operator
- The delete Operator
- The void Operator
- The Comma Operator (,)
- Chapter 4. Statements
- Expression Statements
- Compound and Empty Statements
- Declaration Statements
- var
- function
- Conditionals
- if
- else if
- switch
- Loops
- while
- do/while
- for
- for/in
- Jumps
- Labeled Statements
- break
- continue
- return
- throw
- try/catch/finally
- Miscellaneous Statements
- with
- debugger
- "use strict"
- Chapter 5. Objects
- Creating Objects
- Object Literals
- Creating Objects with new
- Prototypes
- Object.create()
- Properties
- Querying and Setting Properties
- Property Inheritance
- Deleting Properties
- Testing Properties
- Enumerating Properties
- Serializing Properties and Objects
- Property Getters and Setters
- Property Attributes
- Object Attributes
- The prototype Attribute
- The class Attribute
- The extensible Attribute
- Chapter 6. Arrays
- Creating Arrays
- Array Elements and Length
- Iterating Arrays
- Multidimensional Arrays
- Array Methods
- join()
- reverse()
- sort()
- concat()
- slice()
- splice()
- push() and pop()
- unshift() and shift()
- toString()
- ECMAScript 5 Array Methods
- forEach()
- map()
- filter()
- every() and some()
- reduce(), reduceRight()
- indexOf() and lastIndexOf()
- Array Type
- Array-Like Objects
- Strings as Arrays
- Chapter 7. Functions
- Defining Functions
- Nested Functions
- Invoking Functions
- Function Invocation
- Method Invocation
- Constructor Invocation
- Indirect Invocation
- Function Arguments and Parameters
- Optional Parameters
- Variable-Length Argument Lists: The Arguments Object
- Functions as Namespaces
- Closures
- Function Properties, Methods, and Constructor
- The length Property
- The prototype Property
- The bind() Method
- The toString() Method
- The Function() Constructor
- Chapter 8. Classes
- Classes and Prototypes
- Classes and Constructors
- Constructors and Class Identity
- The constructor Property
- Java-Style Classes in JavaScript
- Immutable Classes
- Subclasses
- Augmenting Classes
- Chapter 9. Regular Expressions
- Describing Patterns with Regular Expressions
- Literal Characters
- Character Classes
- Repetition
- Nongreedy repetition
- Alternation, Grouping, and References
- Specifying Match Position
- Flags
- Matching Patterns with Regular Expressions
- String Methods for Pattern-Matching
- RegExp Properties and Methods
- Chapter 10. Client-Side JavaScript
- Embedding JavaScript in HTML
- Event-Driven Programming
- The Window Object
- Timers
- Browser Location and Navigation
- Browsing History
- Browser and Screen Information
- Dialog Boxes
- Document Elements as Window Properties
- Multiple Windows and Frames
- Relationships Between Frames
- JavaScript in Interacting Windows
- The Same-Origin Policy
- Chapter 11. Scripting Documents
- Overview of the DOM
- Selecting Document Elements
- Selecting Elements by ID
- Selecting Elements by Name
- Selecting Elements by Type
- Selecting Elements by CSS Class
- Selecting Elements with CSS Selectors
- Document Structure and Traversal
- Attributes
- Element Content
- Element Content as HTML
- Element Content as Plain Text
- Element Content as Text Nodes
- Creating, Inserting, and Deleting Nodes
- Element Style
- Geometry and Scrolling
- Chapter 12. Handling Events
- Types of Events
- Form Events
- Window Events
- Mouse Events
- Key Events
- HTML5 Events
- Touchscreen and Mobile Events
- Registering Event Handlers
- Setting Event Handler Properties
- Setting Event Handler Attributes
- addEventListener()
- Event Handler Invocation
- Event Handler Argument
- Event Handler Context
- Event Handler Scope
- Handler Return Value
- Event Propagation
- Event Cancellation
- Chapter 13. Networking
- Using XMLHttpRequest
- Specifying the Request
- Retrieving the Response
- HTTP Progress Events
- Cross-Origin HTTP Requests
- HTTP by &script&: JSONP
- Server-Sent Events
- WebSockets
- Chapter 14. Client-Side Storage
- localStorage and sessionStorage
- Storage Lifetime and Scope
- Storage API
- Storage Events
- Cookies
- Cookie Attributes: Lifetime and Scope
- Setting Cookies
- Reading Cookies
- Cookie Limitations
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.