Index
A note on the digital index
A link in an index entry is displayed as the section title in which that entry appears. Because some sections have multiple index markers, it is not unusual for an entry to have several links to the same section. Clicking on any link will take you directly to the place in the text in which the marker appears.
Symbols
- && (logical AND) operator, Discussion
- < (angle bracket)
- replacing with named entities, ProblemâDiscussion
- > (angle bracket)
- greater than operator, Discussion
- >= (greater than or equal to) operator, Discussion
- < (angle bracket)
- less than operator, Discussion
- > (angle bracket)
- replacing with named entities, ProblemâDiscussion
- <= (less than or equal to) operator, Discussion
- * (asterisk)
- in regular expressions, A RegExp Literal, Discussion
- * (asterisk) as universal selector, Solution
- \ (backslash)
- for escape sequences, Discussion
- in regular expressions, A RegExp Literal
- != (inequality) operator, Discussion
- !== (strict inequality) operator, Discussion
- { } (braces) in regular expressions, A RegExp Literal
- [ ] (brackets)
- for arrays, Introduction
- in regular expressions, A RegExp Literal
- ^ (caret) in regular expressions, A RegExp Literal
- $ (dollar sign) in regular expressions, Discussion
- $& pattern, Discussion
- $ (dollar sign)
- in regular expressions, A RegExp Literal
- . (dot)
- dot notation, Discussion
- in regular expressions, Discussion
- == (equality) operator, Solution
- === (strict equality) operator, Discussion
- -- (decrement) operator, Discussion
- ( ) (parentheses) in regular expressions, A RegExp Literal, ProblemâDiscussion
- % (modulo) operator, Solution
- || (conditional OR) operator, Discussion
- + (addition) operator, Solution
- + (plus)
- in regular expressions, A RegExp Literal
- += (assignment) operator, Discussion
- ++ (increment) operator, Discussion
- ? (question mark)
- in regular expressions, A RegExp Literal, A RegExp Literal, Discussion
- ternary operator, Discussion
- ' (single quotes) for strings, A String Primitive
- " (double quotes) for strings, A String Primitive
- / (slash) for RegExp objects, A RegExp Literal
A
- abort method (XMLHttpRequest), Discussion
- abs method (Math), The Math Object
- accessibility, IntroductionâSee Also
- adding to page overlays, ProblemâSee Also
- alert messages, ProblemâSee Also
- collapsible form sections, ProblemâSee Also
- flashing color, to signal action, ProblemâSee Also
- hiding or showing page sections, ProblemâSee Also
- highlighting invalid form fields, ProblemâSee Also
- of live regions, ProblemâSee Also
- with tabbed page applications, ProblemâSee Also
- accessor descriptors, Discussion
- accidental closures, Discussion
- accordion widgets, Discussion, ProblemâSee Also
- acos method (Math), The Math Object
- actions (browser), confirming, ProblemâDiscussion
- add-ons, creating, ProblemâCreating a Greasemonkey script
- addEventListener method, Discussion, Discussion
- adding elements
- adding paragraphs to divs, ProblemâSee Also
- to end to page, ProblemâDiscussion
- before existing elements, ProblemâSee Also
- with innerHTML property, ProblemâDiscussion
- + (addition) operator, Solution
- additions value (aria-relevant attribute), Discussion
- Adobe Bridge SDK, Working with the Adobe Bridge SDK and the ExtendScript ToolkitâWorking with the Adobe Bridge SDK and the ExtendScript Toolkit
- Ajax, IntroductionâDiscussion
- accessing XMLHttpRequest objects, ProblemâSee Also
- adding callback functions to requests, ProblemâSee Also
- checking request status, ProblemâDiscussion
- converting JSON text into objects, ProblemâSee Also
- determining type of query call, ProblemâSee Also
- making requests to other domains, ProblemâSee Also
- periodic page updates, ProblemâSee Also
- populating selection lists from server, ProblemâDiscussion
- preparing data for transmission, ProblemâDiscussion
- processing returned XML documents, ProblemâSee Also
- processing text results, ProblemâSee Also
- alert messages, Solution, ProblemâSee Also
- alert pop up boxes, Discussion
- alert value (ARIA role attribute), Discussion
- alerts, for debugging, ProblemâDiscussion
- all property (document element), The DOM Level 0 Document
- all value (aria-relevant attribute), Discussion
- && (logical AND) operator, Discussion
- analog clock, building, ProblemâDiscussion
- Android applications, building, ProblemâSee Also
- < (angle bracket)
- replacing with named entities, ProblemâDiscussion
- > (angle bracket)
- greater than operator, Discussion
- >= (greater than or equal to) operator, Discussion
- < (angle bracket)
- less than or equal to operator, Discussion
- > (angle bracket)
- replacing with named entities, ProblemâDiscussion
- <= (less than or equal to) operator, Discussion
- anonymous functions, Introduction, Discussion, Discussion
- appCodeName property (Navigator), Discussion
- appendChild method, ProblemâDiscussion
- appending elements to page end, ProblemâDiscussion
- Apple Mac Dashboard widgets, Developing Mac Dashboard widgetsâDeveloping Mac Dashboard widgets
- application caching, Solution
- application performance profiling, ProblemâSee Also
- applications, enhancing with JavaScript, ProblemâCreating an OpenOffice macro
- apply method (Function), ProblemâDiscussion
- appName property (Navigator), Discussion
- appVersion property (Navigator), Discussion
- arc method (canvas), Discussion
- arcs, calculating length of, ProblemâSee Also
- area of web page window, ProblemâSee Also
- arguments, functions, ProblemâSee Also
- complex data objects as, ProblemâDiscussion
- currying (see currying)
- functions as, ProblemâSee Also
- recursive algorithms, ProblemâSee Also
- validating, Discussion
- arguments objects (functions), Discussion
- aria-atomic attribute, Discussion
- ARIA attributes
- aria-dropeffect property, Discussion
- aria-expanded attribute, Solution, Solution
- aria-grabbed property, Discussion
- aria-hidden attribute, Discussion, Solution
- aria-invalid attribute, Discussion
- aria-labeledby attribute, Solution, Solution
- aria-live attribute, Discussion
- aria-multiselect attribute, Solution
- aria-relevant attribute, Discussion
- arithmetic operators, with Date objects, Discussion
- Array objects (see arrays)
- Array objects, nested (see multidimensional arrays)
- arrays, IntroductionâSee Also
- applying functions against each element, ProblemâSee Also
- associative, to store form data, ProblemâSee Also
- of elements, by class name, ProblemâSee Also
- filtering to create subarrays, ProblemâSee Also
- joining elements into strings, ProblemâDiscussion
- looping through elements of, ProblemâDiscussion
- multidimensional, ProblemâDiscussion
- flattening into single dimension, ProblemâDiscussion
- NodeList collections vs., Discussion
- printing out, Introduction
- searching through, ProblemâSee Also
- sorting (ordering) elements of
- alphabetically, ProblemâDiscussion
- FIFO (first-in, first out), ProblemâDiscussion
- LIFO (last-in, first-out), ProblemâDiscussion
- subsets of, creating arrays for, ProblemâDiscussion
- validating contents of, ProblemâSee Also
- article elements
- articles, accessing all images in, ProblemâSee Also
- asin method (Math), The Math Object
- assertions, JsUnit, Discussion
- += (assignment) operator, Discussion
- Assistive Technology (AT) devices (see accessibility)
- associative arrays, ProblemâSee Also
- * (asterisk)
- in regular expressions, A RegExp Literal, Discussion
- * (asterisk) as universal selector, Solution
- AT devices (see accessibility)
- atan method (Math), The Math Object
- atan2 method (Math), The Math Object
- attachEvent method, Discussion
- attribute minimization, Discussion
- attributes
- audio (see rich media)
- audio elements, Introduction, ProblemâSee Also
- automatic garbage collection, Discussion
- availWidth property (Screen), Solution
B
- \b in regular expressions, A RegExp Literal
- \B in regular expressions, A RegExp Literal
- Back button
- alternative to, ProblemâDiscussion
- preserving state for, ProblemâSee Also
- / (backslash)
- for escape sequences, Discussion
- \ (backslash)
- in regular expressions, A RegExp Literal
- != (inequality) operator, Discussion
- !== (strict inequality) operator, Discussion
- beginPath method (canvas), Discussion
- bezierCurveTo method (canvas), Discussion
- bind method (Prototype), Solution
- BlackBerry applications, building, ProblemâSee Also
- _blank URL, Discussion
- block value (CSS display property), Discussion
- blur events, Some Common Events
- with form elements, Discussion
- body elements, Introduction
- appending elements to page bottom, SolutionâDiscussion
- bookmarking dynamic pages, ProblemâSee Also
- Boolean attributes, testing for, ProblemâSee Also
- border property (bounding rectangle), Discussion
- bottom property (bounding rectangle), Discussion
- { } (braces) in regular expressions, A RegExp Literal
- [ ] (brackets)
- for arrays, Introduction
- in regular expressions, A RegExp Literal
- breadcrumbs in CMS templates, ProblemâDiscussion
- breakpoints
- with Firebug, ProblemâDiscussion
- with IEâs Developer Tools, ProblemâDiscussion
- browser add-ons, creating, ProblemâCreating a Greasemonkey script
- browser information, getting, ProblemâSee Also
- Browser Object Model (BOM), Introduction
- browser objects, Introduction
- browsers, using, IntroductionâSee Also
- basing image dimensions on page size, ProblemâSee Also
- bookmarking dynamic pages, ProblemâSee Also
- breadcrumbs in CMS templates, ProblemâDiscussion
- confirming user actions, ProblemâDiscussion
- creating new basic windows, ProblemâDiscussion
- getting information about browser, ProblemâSee Also
- preserving state for Back and Refresh, ProblemâSee Also
- stylesheets, based on color support, ProblemâSee Also
- styling new elements in old browsers, ProblemâSee Also
- warning about leaving page, ProblemâDiscussion
- browsing context, Introduction
- bulleted lists, applying striping theme to, ProblemâSee Also
- button elements, Discussion
C
- caching calculations (memoization), ProblemâSee Also
- callback functions, Solution
- canceling events, Event History and New Event Handling, ProblemâDiscussion
- canceling form submission upon invalid data, ProblemâSee Also
- cancelPropagation method, Discussion
- canPlayType method (media elements), Discussion
- canvas elements, Introduction, ProblemâSee Also
- converting hCalendar Microformat annotations into, ProblemâSee Also
- dynamic line charts, ProblemâSee Also
- implementing in IE, ProblemâDiscussion
- integrating with SVG in HTML, ProblemâDiscussion
- capitalization (see case)
- ^ (caret) in regular expressions, A RegExp Literal
- case (capitalization)
- comparing strings and, Discussion
- converting, Discussion
- ignoring in pattern matching, Discussion
- uppercase greater than lowercase, Discussion
- catch statements, for exception handling, Discussion
- ceil method (Math), The Math Object
- chaining constructors, Problem
- chaining methods, Discussion, ProblemâSee Also, Discussion
- change events, Some Common Events
- characters, Discussion
- (see also strings)
- breaking strings into individual, Discussion
- capitalization of (see case)
- escape sequences for, Solution
- matching in regular expressions, A RegExp Literal
- pattern matching (see regular expressions)
- special, in regular expressions, A RegExp Literal
- checkbox elements, Discussion
- checked options, finding all, ProblemâSee Also
- :checked pseudoclass, Solution
- childNodes collection, Solution, Discussion, Discussion, Discussion
- Chrome extensions, building, Creating Google Chrome extensionsâCreating Google Chrome extensions
- Chrome (Google), debugging in, ProblemâSee Also
- circles that fit page elements, ProblemâSee Also
- circular arcs, calculating length of, ProblemâSee Also
- class name, collecting elements by, ProblemâSee Also
- className property (HTMLElement), Discussion
- clearRect method (canvas), Discussion
- click events, Some Common Events
- with form elements, Discussion
- click location (mouse), capturing, ProblemâSee Also
- client-side storage
- ClientRect objects, Discussion
- clientWidth property, Discussion
- cloneNode method, Discussion
- closePath method (canvas), Discussion
- closures, Discussion, Discussion
- (see also currying)
- CMS templates, breadcrumbs in, ProblemâDiscussion
- code, packaging into files, ProblemâSee Also
- code compression with minify, ProblemâSee Also
- collapsible form sections, ProblemâSee Also, ProblemâSee Also
- colorDepth property (Screen), Solution
- colors
- columns, table, summing all elements in, ProblemâSee Also
- Comet concept (Ajax communication), Discussion
- comma-delimited strings, breaking apart, ProblemâSee Also
- communication APIs (see Ajax; postMessage functionality)
- comparing strings, ProblemâSee Also
- comparison operators, Discussion
- compressing code with minify, ProblemâSee Also
- concat method (Array), Solution
- concatenating strings, ProblemâDiscussion
- with other data types, ProblemâDiscussion
- concurrent form submissions, preventing, ProblemâDiscussion
- || (conditional OR) operator, Discussion
- configurable attribute (objects), Discussion, Discussion
- confirm pop up boxes, Discussion
- confirming user actions, ProblemâDiscussion
- Console panel (Firebug), Discussion
- constructor chaining, ProblemâDiscussion
- constructors, Solution
- controls attribute (audio element), Discussion
- cookie collection (document element), The DOM Level 0 Document
- cookie property (document), Solution, Discussion
- cookieEnabled property (Navigator), Discussion
- cookies, Introduction, ProblemâSee Also
- CORS (Cross Origin Resource Sharing) API, Introduction
- cos method (Math), The Math Object, Discussion
- createAttribute method, SolutionâNamespace Variation
- createElement method, Discussion
- adding elements before other elements, ProblemâSee Also
- creating shims with, Discussion
- createElementNS method, Namespace Variation
- createTextNode method, Discussion, Discussion
- CSS style properties
- CSS tab (Firebug), Discussion
- { } (braces) in regular expressions, A RegExp Literal
- currentStyle objects, Discussion
- currentTime attribute (video element), Discussion
- currying, Discussion, ProblemâSee Also
D
- \d in regular expressions, A RegExp Literal, Discussion
- \D@ in regular expressions, A RegExp Literal
- Dashboard Widgets (Apple), Developing Mac Dashboard widgetsâDeveloping Mac Dashboard widgets
- data-* attributes, Discussion
- data descriptors, Discussion
- data persistence (see persistence)
- date and time, IntroductionâSee Also
- converting ISO 8601 string to Date, ProblemâDiscussion
- creating Date object from data, ProblemâDiscussion
- elapsed time, tracking, ProblemâDiscussion
- function closures with timers, ProblemâSee Also
- future dates, ProblemâDiscussion
- ISO 8601 formatted dates, ProblemâSee Also
- printing todayâs date, ProblemâDiscussion
- printing UTC date and time, ProblemâSee Also
- realistic analog clock, building, Solution
- recurring timers, ProblemâDiscussion
- timeouts, triggering, ProblemâSee Also
- Date objects, IntroductionâThe Date Object
- arithmetic operators with, Discussion
- building analog clock with, Solution
- calculating time between, ProblemâDiscussion
- converting ISO 8601 strings to, ProblemâDiscussion
- creating from data, ProblemâDiscussion
- datetime command, Discussion
- dblclick events, Some Common Events
- debug function (JsUnit), Discussion
- debugging, Introduction
- checking for function errors, ProblemâDiscussion
- checking values of variables, ProblemâDiscussion
- custom useful exceptions, ProblemâDiscussion
- with Firebug, ProblemâSee Also
- with Googleâs Chrome (WebKit), ProblemâSee Also
- with IEâs Developer Tools, ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- with Operaâs Dragonfly, ProblemâSee Also
- profiling application performance, ProblemâSee Also
- with Safariâs development tools, ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- using breakpoints, ProblemâDiscussion
- decimal numbers, converting to hexadecimals, ProblemâSee Also
- declarative functions, Introduction, Discussion
- -- (decrement) operator, Discussion
- __defineGetter__ method, Discussion
- defineProperty method (Object), Solution, Discussion
- __defineSetter__ method, Discussion
- degrees, converting with radians, ProblemâDiscussion
- DELETE requests, about, Discussion
- deleting (removing)
- attributes from elements, ProblemâSee Also
- event listeners, Creating a universal stop-listening function
- paragraphs from pages, ProblemâDiscussion
- specific array elements, ProblemâSee Also
- unwanted textarea input, ProblemâSee Also
- desktop widgets, creating, ProblemâThe Opera Widgets development environment
- Developer Tools (Internet Explorer), ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- dimensions (see size)
- dimensions of images, basing on page, ProblemâSee Also
- disabled property, with form elements, Solution
- disabled scripting, handling, ProblemâSee Also
- disabling form elements, ProblemâSee Also
- after radio button events, Discussion
- display property (CSS), Discussion, Solution
- aria-hidden property with, Discussion
- div elements, Introduction
- document elements, Introduction, Introduction
- accessing, ProblemâDiscussion
- forms collection, Discussion
- documenting code, Discussion
- documentView property (document element), Discussion
- $ (dollar sign)
- in regular expressions, A RegExp Literal
- $ (dollar sign) in regular expressions, Discussion
- $& pattern, Discussion
- DOM inspector (Firebug), Discussion
- DOM Level 0 event handling, Event History and New Event Handling, Discussion
- DOM Level 1 specification, The Standardized DOMs
- DOM Level 2 event handling, Event History and New Event Handling, ProblemâCreating a universal stop-listening function
- domain= parameter (cookies), Discussion
- DOMException exceptions, Discussion
- DOMNodeInserted event, New Events, New Uses
- DOMNodeRemoved event, New Events, New Uses
- . (dot) in regular expressions, Discussion
- dot notation, Discussion
- " (double quotes) for strings, A String Primitive
- drag-and-drop (HTML5), ProblemâSee Also
- drag events, Discussion, Discussion
- dragend events, Discussion
- dragenter events, Discussion, Discussion
- draggable attribute, Discussion
- dragleave events, Discussion
- Dragonfly (Opera), ProblemâSee Also
- dragover events, Discussion, Discussion
- dragstart events, Discussion, Discussion
- drop events, Discussion
- dtstart class, Problem
- duplicate form submissions, preventing, ProblemâDiscussion
- dynamic line charts (canvas), ProblemâSee Also
- dynamic pages
- dynamic runtime functions, ProblemâSee Also
- dynamic selection lists, ProblemâSee Also
E
- E property (Math), The Math Object
- elapsed time, tracking, ProblemâDiscussion
- elements
- accessing all images in, ProblemâSee Also
- adding attributes to, ProblemâNamespace Variation
- changing CSS style properties of, ProblemâSee Also
- collecting by shared attribute, ProblemâSee Also
- creating arrays of, by class name, ProblemâSee Also
- finding parent elements for, ProblemâSee Also
- getting attribute information for, ProblemâSee Also
- getting CSS style information for, ProblemâSee Also
- hiding or showing page sections, ProblemâSee Also
- hiding until needed, ProblemâSee Also
- HTML5, styling in older browsers, ProblemâSee Also
- measuring size of, ProblemâDiscussion
- moving within page, ProblemâSee Also
- overflow, Introduction
- positions of (on page), ProblemâSee Also
- removing attributes from, ProblemâSee Also
- removing from pages, ProblemâDiscussion
- testing for Boolean attributes, ProblemâSee Also
- elements, adding
- adding paragraphs to divs, ProblemâSee Also
- to end to page, ProblemâDiscussion
- before existing elements, ProblemâSee Also
- with innerHTML property, ProblemâDiscussion
- a elements
- replacing with footnote bullets, ProblemâDiscussion
- elements property (form element), The DOM Level 0 Document
- embedding SVG into HTML pages, ProblemâSee Also
- empty strings, checking for, ProblemâDiscussion
- emulating canvas, Solution
- emulating SVG in IE, ProblemâSee Also
- encodeURI method, Discussion
- encodeURIComponent method, Discussion, Solution, Discussion
- enhancing applications with JavaScript, ProblemâCreating an OpenOffice macro
- enumerable attribute (objects), Discussion
- enumering object properties, ProblemâSee Also
- == (equality) operator, Solution
- === (strict equality) operator, Discussion
- Error Console (Dragonfly), Discussion
- Error Console (Safari), Discussion
- error handling, Introduction
- checking for function errors, ProblemâDiscussion
- custom useful exceptions, ProblemâDiscussion
- graceful, ProblemâDiscussion
- managing when JavaScript is off, ProblemâSee Also
- Error objects, Discussion
- errors, about, Introduction
- errors in forms, highlighting, ProblemâSee Also
- errors with AJax requests, checking for, ProblemâDiscussion
- escape sequences, Solution
- eval method, Solution, Discussion
- EvalError errors, Discussion
- event listeners, Event History and New Event Handling
- stopping listening, Creating a universal stop-listening functionâCreating a universal stop-listening function
- Event objects, Discussion
- EventException exceptions, Discussion
- events, IntroductionâSee Also
- canceling, Event History and New Event Handling, ProblemâDiscussion
- capturing mouse-click information, ProblemâSee Also
- flashing color, to signal action, ProblemâSee Also
- with forms
- generic reusable handler functions, ProblemâCreating a universal stop-listening function
- HTML5 drag-and-drop, ProblemâSee Also
- keyboard events, Some Common Events, ProblemâSee Also
- keyboard listening, ProblemâSee Also
- live regions, accessibility of, ProblemâSee Also
- propagating through nested elements, ProblemâDiscussion
- running functions after page load, ProblemâSee Also
- Safari orientation events, ProblemâSee Also
- every method (Array), Solution
- exceptions, ProblemâDiscussion
- exp method (Math), The Math Object
- expires= parameter (cookies), Discussion
- explorercanvas library, Solution
- ExtendScript Toolkit (ESTK), Working with the Adobe Bridge SDK and the ExtendScript ToolkitâWorking with the Adobe Bridge SDK and the ExtendScript Toolkit
- extensibility, object
- adding methods, Expanding Objects with prototypeâDiscussion
- adding properties, ProblemâSee Also
- preventing, ProblemâSee Also
- preventing property descriptor changes, ProblemâSee Also
- extensions, creating, ProblemâCreating a Greasemonkey script
- external libraries, using, ProblemâSee Also
- extracting data from XML documents, ProblemâSee Also
F
- factorials, Discussion
- fades, to signal action, ProblemâSee Also
- Fibonacci Sequence, Discussion, Discussion
- fields, form (see see forms)
- FIFO (first-in, first out), ProblemâDiscussion
- File API, ProblemâSee Also
- file elements (forms), Discussion
- File objects (File API), Discussion
- FileList objects (File API), Discussion
- fileName property (Error), Discussion
- FileReader objects (File API), Discussion
- fillRect method (canvas), Discussion
- filter method (Array), Discussion
- filtering arrays, ProblemâSee Also
- finally statements, for exception handling, Discussion
- finding (see searching)
- Firebox, Greasemonkey scripts for, Creating a Greasemonkey scriptâCreating a Greasemonkey script
- Firebug debugger, ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- Firebox, debugging in, ProblemâSee Also
- Firefox, debugging in
- profiling application performance, ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- Firefox, WebGL support in, ProblemâSee Also
- Firefox extensions, building, Mozilla extensionsâMozilla extensions
- :first-child selector (CSS), Discussion
- :first-of-type selector (CSS), Discussion
- flashing color, to signal action, ProblemâSee Also
- flattening multidimensional arrays, ProblemâDiscussion
- floor method (Math), The Math Object, Solution
- fn property (jQuery), Solution
- focus events, Some Common Events
- with form elements, Discussion
- footnote bullets, replacing links with, ProblemâDiscussion
- for...in loops, Solution
- forEach method (Array), Solution
- foreignObject elements (SVG), Discussion
- form data, processing for Ajax calls, ProblemâDiscussion
- forms, IntroductionâSee Also
- accessing text input values, ProblemâSee Also
- acting upon radio button clicks, ProblemâSee Also
- capturing data upon events, ProblemâSee Also
- collapsible sections for, ProblemâSee Also, ProblemâSee Also
- disabling and enabling elements, ProblemâSee Also
- after radio button events, Discussion
- dynamic selection lists, ProblemâSee Also
- hiding and displaying elements, ProblemâSee Also
- highlighting invalid fields, ProblemâSee Also
- multiple submissions, preventing, ProblemâDiscussion
- with no JavaScript support, ProblemâSee Also
- storing data in associative arrays, ProblemâSee Also
- validating input for
- forms collection (document element), Discussion, The DOM Level 0 Document
- frame elements, Introduction
- freeze method (Object), Solution
- Function.apply method, ProblemâDiscussion
- function closers with timers, ProblemâSee Also
- function closures, ProblemâSee Also, Discussion
- (see also currying)
- function constructors, Introduction
- function literals (function expressions), Introduction, Discussion
- Function objects, Introduction, Solution
- function scope, Discussion
- function statements, Introduction, Discussion
- functions, IntroductionâSee Also
- anonymous, wrapping global variables with, ProblemâSee Also
- applying against array elements, ProblemâSee Also
- controlling scope of, ProblemâDiscussion
- creating, ProblemâDiscussion
- currying, Discussion, ProblemâSee Also
- dynamic runtime functions, ProblemâSee Also
- errors in, checking for, ProblemâDiscussion
- memoization (caching calculations), ProblemâSee Also
- passing as function arguments, ProblemâSee Also
- passing complex objects to, ProblemâDiscussion
- passing data to/from, ProblemâSee Also
- recursion, ProblemâSee Also
- remembering data among, ProblemâSee Also
- running after page load, ProblemâSee Also
- running repetitively, ProblemâDiscussion
- future dates, scheduling, ProblemâDiscussion
G
- \g flag (regular expressions), Discussion, Solution
- garbage collection, function closures and, Discussion
- generalized currying functions, ProblemâSee Also
- geolocation API, Solution
- geometry
- gesture events, New Events, New Uses
- GET requests, ProblemâSee Also
- getAllResponseHeaders method (XMLHttpRequest), Discussion
- getAttribute method, Solution
- getAttributeNS method, See Also
- getBoundingClientRect method (element), Solution, Solution
- getComputedStyle method (window element), Discussion
- getDate method (Date), The Date Object, Discussion
- getDay method (Date), The Date Object
- getElementById method (document element), The Standardized DOMs, Solution
- getElementsByClassName method
- getElementsByClassName method (document element), The Standardized DOMs
- getElementsByTagName method (document element), The Standardized DOMs, Solution, Namespace Variation, Discussion
- summing table row/column elements, Discussion
- getFullYear method (Date), The Date Object, Discussion
- getHours method (Date), The Date Object, Discussion
- getMilliseconds method (Date), The Date Object, Discussion
- getMinutes method (Date), The Date Object, Discussion
- getMonth method (Date), The Date Object
- getOwnPropertyDescription method (Object), Discussion
- getOwnPropertyDescriptor method, Discussion
- getOwnPropertyNames method (Object), Solution, Discussion
- getResponseHeader method (XMLHttpRequest), Discussion
- getSeconds method (Date), The Date Object, Discussion
- getSVGDocument method, Discussion
- getter/setter functionality, ProblemâSee Also
- getTime method (Date), The Date Object
- getTimezoneOffset method (Date), The Date Object
- getUTCDate method (Date), The Date Object
- getUTCDay method (Date), The Date Object
- getUTCFullYear method (Date), The Date Object
- getUTCHours method (Date), The Date Object
- getUTCMilliseconds method (Date), The Date Object
- getUTCMinutes method (Date), The Date Object
- getUTCMonth method (Date), The Date Object
- getUTCSeconds method (Date), The Date Object
- github host, Discussion
- global search flag (\g), Discussion, Solution
- global variables, Discussion
- Google Chrome extensions, building, Creating Google Chrome extensionsâCreating Google Chrome extensions
- Google Code host, Discussion
- Google Gears, Introduction
- Googleâs Chrome, debugging in, ProblemâSee Also
- Greasemonkey scripts, Creating a Greasemonkey scriptâCreating a Greasemonkey script
- > (greater than) operator, Discussion
- >= (greater than or equal) operator, Discussion
H
- hasAttribute method, Discussion, Solution
- hash maps (hash tables), Discussion
- hash property (location element), Discussion, Solution
- hCalendar Microformat annotations, ProblemâSee Also
- head elements, Introduction
- height (see size)
- height attribute (canvas element), Discussion
- height property (bounding rectangle), Discussion
- hexadecimal numbers, converting to decimals, ProblemâSee Also
- hidden attribute, Discussion
- hiding form elements, ProblemâSee Also
- hiding page elements, ProblemâSee Also
- hiding page sections, ProblemâSee Also
- highlighting
- history elements, Introduction
- host property (location element), Discussion
- hosting libraries as open source, ProblemâDiscussion
- hostname property (location element), Discussion
- hover-based pop-up windows, ProblemâSee Also
- href property (location element), Discussion
- HTML, embedding SVG into, ProblemâSee Also
- integrating with canvas, ProblemâDiscussion
- HTML, processing Ajax text results as, ProblemâSee Also
- html elements, Introduction
- HTML tab (Firebug), Discussion
- HTML tags, replacing with named entities, ProblemâDiscussion
- HTML5 drag-and-drop, ProblemâSee Also
- HTML5 postMessage API, ProblemâDiscussion
- HTML5 shims, Discussion
- HTMLElement objects, Discussion
- hyperlinks, replacing links with, ProblemâDiscussion
- -- (decrement) operator, Discussion
I
- \i flag (regular expressions), Discussion
- id attribute (form element), The DOM Level 0 Document
- image dimensions, basing on page, ProblemâSee Also
- image elements
- images collection (document element), The DOM Level 0 Document
- ++ (increment) operator, Discussion
- incremental counters, ProblemâSee Also
- index (array elements), Introduction
- indexOf method (Array), Solution, Solution
- indexOf method (String), Solution, Solution
- != (inequality) operator, Discussion
- inform function (JsUnit), Discussion
- inherit value (CSS display property), Discussion
- inheritance, objects, ProblemâDiscussion
- inline-block value (CSS display property), Discussion
- inline CSS values, getting, Discussion
- inner functions, Discussion
- innerHeight property (window element), Discussion
- innerHTML property, ProblemâDiscussion, Discussion
- innerHTML property, Solution
- input, form (see forms)
- input, validating (see validating)
- input elements, finding all checked, ProblemâSee Also
- insertBefore method, Discussion, Solution, Solution
- inserting elements
- adding paragraphs to divs, ProblemâSee Also
- at end to page, ProblemâDiscussion
- before existing elements, ProblemâSee Also
- with innerHTML property, ProblemâDiscussion
- Internet Explorerâs Developer Tools, ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- iPhone applications, building, ProblemâSee Also
- iPhoneOrientation events, Discussion
- isExtensible method (Object), Discussion
- isFrozen method (Object), Discussion
- isNaN function, Discussion
- ISO 8601 formatted dates, ProblemâSee Also
- converting string to Date object, ProblemâDiscussion
J
- JavaScript, handling when disabled, ProblemâSee Also
- JavaScript Compressor, Discussion
- join method (Array), ProblemâDiscussion
- jQuery.fn property, Solution
- jQuery framework, Discussion, ProblemâSee Also
- converting libraries to plug-ins, ProblemâDiscussion
- RDF plug-in, ProblemâSee Also
- using jQuery plug-ins, ProblemâDiscussion
- jQuery Validation plug-in, Solution
- JSON (JavaScript Object Notation), Introduction
- JSONP (JSON with Padding), Solution
- JsUnit, testing code with, ProblemâDiscussion
K
- keyboard events, Some Common Events, ProblemâSee Also
- with textarea elements, Discussion
- keyboard listening, page overlays with, ProblemâSee Also
- keydown events, Discussion
- keypress events, Discussion
- with form elements, Discussion
- keys method (Object), Solution, Discussion
- keyup events, Discussion
- -khtml-user-drag CSS setting, Discussion
L
- language property (Navigator), Discussion
- lastIndex property (RegExp), Discussion
- lastIndexOf method (Array), Solution
- lastIndexOf method (String), Discussion
- left-padding strings, ProblemâSee Also
- left property (bounding rectangle), Discussion, Solution
- length property (NodeList), Discussion
- length property (String), Solution
- < (less than) operator, Discussion
- <= (less than or equal) operator, Discussion
- libraries, IntroductionâSee Also
- combining several, ProblemâSee Also
- converting to jQuery plug-ins, ProblemâDiscussion
- external, using, ProblemâSee Also
- hosting as open source, ProblemâDiscussion
- JsUnit, testing code with, ProblemâDiscussion
- minify, to compress code, ProblemâSee Also
- packaging code into files, ProblemâSee Also
- using existing jQuery plug-ins, ProblemâDiscussion
- LIFO (last-in, first-out), ProblemâDiscussion
- line charts (canvas), ProblemâSee Also
- line feed (\n), Solution
- matching in regular expressions, A RegExp Literal
- lineNumber property (Error), Discussion
- lines in textareas, processing, ProblemâSee Also
- links, replacing links with, ProblemâDiscussion
- links collection (document element), The DOM Level 0 Document
- listeners (see event listeners)
- listener/sender functionality, Discussion
- literals, A String Primitive
- live regions, accessibility of, ProblemâSee Also
- LN10 property (Math), The Math Object
- LN2 property (Math), The Math Object
- load events, Some Common Events
- load method (media elements), Discussion
- localeCompare method (String), Discussion
- localStorage objects, ProblemâSee Also
- location data for elements, ProblemâSee Also
- location elements, Introduction, Solution
- bookmarking dynamic pages, Solution
- log method (Math), The Math Object
- LOG10E property (Math), The Math Object
- LOG2E property (Math), The Math Object
- && (logical AND) operator, Discussion
- long polling, Discussion
- loops through array elements, ProblemâDiscussion
- lowercase (see case)
M
- \m flag (regular expressions), Discussion
- Mac Dashboard widgets, Developing Mac Dashboard widgetsâDeveloping Mac Dashboard widgets
- map method (Array), Solution
- match method (String), Solution
- matching (see regular expressions)
- math, Introduction
- Math objects, The Math ObjectâThe Math Object
- building clock with, ProblemâDiscussion
- max-age= parameter (cookies), Discussion
- max method (Math), The Math Object
- media (see rich media)
- media attribute, Discussion
- @media rule, Discussion
- memoization (caching calculations), ProblemâSee Also
- message property (Error), Discussion
- meta elements, Introduction
- method chaining, Discussion, ProblemâSee Also, Discussion
- methods, object
- creating, Expanding Objects with prototypeâDiscussion
- keeping private, ProblemâSee Also
- preventing any changes to, ProblemâSee Also
- Microformat annotations (hCalendar), ProblemâSee Also
- microformats, working with, Discussion
- Microsoft OpenOffice macros, creating, Creating an OpenOffice macroâCreating an OpenOffice macro
- mimeTypes collection (Navigator), Discussion
- min method (Math), The Math Object
- mobile development, Problem
- mobile phone applications, building, ProblemâSee Also
- mobile widgets, creating, ProblemâThe Opera Widgets development environment
- modularizing code, Discussion
- % (modulo) operator, Solution
- mouse events, Some Common Events
- capturing mouse-click information, ProblemâSee Also
- hover-based pop-up windows with, ProblemâSee Also
- with textarea elements, Discussion
- mouse gesture events, New Events, New Uses
- moving elements within pages, ProblemâSee Also
- Mozilla extensions, building, Mozilla extensionsâMozilla extensions
- multidimensional arrays, ProblemâDiscussion
- flattening into single dimension, ProblemâDiscussion
- multimedia (see rich media)
- multiple form submissions, preventing, ProblemâDiscussion
N
- \n (new line) character, Solution
- matching in regular expressions, A RegExp Literal
- name attribute (form element), The DOM Level 0 Document
- name property (Error), Discussion
- named entities, Discussion
- @namespace statement, Namespace Variation
- namespace variations
- adding attributes to elements, Namespace Variation
- creating elements or attributes, Namespace Variation
- element queries and, Namespace Variation, Namespace Variation
- embedding SVG into HTML, Discussion
- namespaceURI property, Namespace Variation
- namespacing your JavaScript, ProblemâSee Also
- NaN property (Number), The Number Object and Number Literal
- NaN value, Discussion
- navigator elements, Introduction, Solution
- negation (:not) pseudoselector, Discussion
- nested elements, propagating events through, ProblemâDiscussion
- Netflix-style pop-up windows, ProblemâSee Also
- Network page (Dragonfly), Discussion
- new keyword, Discussion
- new line (\n), Solution
- matching in regular expressions, A RegExp Literal
- NodeList collection, Discussion
- nodes, DOM, Introduction
- nonempty strings, checking for, ProblemâDiscussion
- nonbreaking space character, Solution
- none value (CSS display property), Discussion
- noscript elements, Solution
- :not pseudoselector, Discussion
- :nth-child pseudoclass, Discussion
- Number objects, The Number Object and Number Literal
- numbers, IntroductionâSee Also
- concatenating with strings, Problem
- converting decimals to hexadecimals, ProblemâSee Also
- converting degrees and radians, ProblemâDiscussion
- converting strings into, ProblemâDiscussion
- dates (see date and time)
- incremental counters, ProblemâSee Also
- matching in regular expressions, A RegExp Literal, Discussion
- random, generating, ProblemâDiscussion, ProblemâSee Also
- social security numbers, validating, ProblemâSee Also
- sorting array elements numerically, Discussion
- summing column of, ProblemâSee Also
- NVDA screen reader, Introduction
O
- objects, IntroductionâSee Also
- adding getter/setter functionality, ProblemâSee Also
- adding new properties, ProblemâSee Also
- chaining methods, ProblemâSee Also
- creating, ProblemâSee Also
- enumerating properties of, ProblemâSee Also
- expanding with prototype, Expanding Objects with prototypeâDiscussion
- as function arguments, ProblemâDiscussion
- inheriting functionality of, ProblemâDiscussion
- members of, keeping private, ProblemâSee Also
- one-off objects, ProblemâSee Also
- preventing any changes to, ProblemâSee Also
- preventing extensibility of, ProblemâSee Also
- preventing property descriptor changes, ProblemâSee Also
- Office applications, creating macros for, Creating an OpenOffice macroâCreating an OpenOffice macro
- offset, element, Discussion
- onblur event
- onchange event
- onclick events, ProblemâSee Also
- one-off objects, ProblemâSee Also
- onfocus event, accessing form element data, Solution
- onload events, ProblemâSee Also
- onmessage event handler (WebSocket), Discussion
- onmouseout event, for hover-based pop-up windows, Solution
- onmouseover event, for hover-based pop-up windows, Solution
- onpopevent event handler, ProblemâDiscussion
- onreadystatechange property (XMLHttpRequest), Discussion, Solution
- open method (window element), Solution
- open method (XMLHttpRequest), Discussion, Discussion
- open sourcing code, ProblemâDiscussion
- OpenOffice macros, creating, Creating an OpenOffice macroâCreating an OpenOffice macro
- Opera widgets, creating, The Opera Widgets development environmentâThe Opera Widgets development environment
- Operaâs Dragonfly, ProblemâSee Also
- operators, overloaded, Discussion
- Orca screen reader, Introduction
- ordering
- array elements (see sorting arrays)
- orientation events (Safari), ProblemâSee Also
- outer functions, Discussion
- overflow property, Introduction
- overlays for pages, ProblemâSee Also
- overloaded operators, defined, Discussion
- overrideMimeType method (XMLHttpRequest), Discussion, Discussion
P
- p elements, Introduction
- packaging code into files, ProblemâSee Also
- padding property (bounding rectangle), Discussion
- padding strings, ProblemâSee Also
- page elements (see elements)
- page fragments, ProblemâSee Also
- page overlays, ProblemâSee Also
- page space, IntroductionâDiscussion
- collapsible form sections, ProblemâSee Also, ProblemâSee Also
- collapsible sidebars, ProblemâDiscussion
- hiding elements until needed, ProblemâSee Also
- hover-based pop-up windows, ProblemâSee Also
- measuring area of window, ProblemâSee Also
- overlays for pages, ProblemâSee Also
- position data for page elements, ProblemâSee Also
- using tabs (divided content), ProblemâSee Also
- pages (web pages)
- accessing all images in, ProblemâSee Also
- automatic periodic updates, ProblemâSee Also
- circles sized to fit, ProblemâSee Also
- detecting page loads, ProblemâSee Also
- dynamic
- embedding SVG into HTML, ProblemâSee Also
- hiding or showing sections of, ProblemâSee Also
- integrating SVG and canvas in, ProblemâDiscussion
- modifying image dimensions for, ProblemâSee Also
- moving elements within, ProblemâSee Also
- positions of elements on, ProblemâSee Also
- removing paragraphs from, ProblemâDiscussion
- using tabs (divided content), ProblemâSee Also
- warning about leaving, ProblemâDiscussion
- when JavaScript is off, ProblemâSee Also
- paragraphs (see p elements)
- parcel-descriptor.xml files, Creating an OpenOffice macro
- ( ) (parentheses) in regular expressions, A RegExp Literal, ProblemâDiscussion
- parent elements, finding, ProblemâSee Also
- parentNode property, Solution, Solution
- parse method (JSON), Discussion
- parseFloat function, Discussion, Discussion
- parseInt function, Solution
- parsing JSON-formatted strings, ProblemâSee Also
- partial functions, Discussion
- password elements, Discussion
- path method (canvas), Solution
- path= parameter (cookies), Discussion
- pathname property (location element), Discussion
- pattern matching (see regular expressions)
- pause method (media elements), Discussion
- % (modulo) operator, Solution
- performance of application, profiling, ProblemâSee Also
- . (period)
- dot notation, Discussion
- in regular expressions, Discussion
- periodic page updates, ProblemâSee Also
- persistence, IntroductionâSee Also
- phone applications, building, ProblemâSee Also
- phone numbers, validating, ProblemâSee Also
- PhoneGap, ProblemâSee Also
- photosensitive epilepsy, Discussion
- PI property (Math), The Math Object, Solution
- || (conditional OR) operator, Discussion
- platform property (Navigator), Discussion
- play method (media elements), Discussion
- plug-ins, creating, ProblemâCreating a Greasemonkey script
- plug-ins, jQuery (see jQuery framework)
- plugins collection (Navigator), Discussion
- + (plus) in regular expressions, A RegExp Literal
- + (addition) operator, Solution
- += (assignment) operator, Discussion
- ++ (increment) operator, Discussion
- polite value (aria-live attribute), Discussion
- pop method (Array), Solution
- pop-up windows, ProblemâSee Also
- port property (location element), Discussion
- position data for elements, ProblemâSee Also
- POST requests, ProblemâSee Also
- POST requests, about, Discussion, Discussion
- postfix operators, Discussion
- postMessage API, ProblemâDiscussion
- pow method (Math), The Math Object
- prefix operators, Discussion
- preventDefault method, Discussion, Discussion
- preventExtensions method (Object), Solution, Discussion
- primitive data types, A String Primitive
- printing arrays, Introduction
- private members of objects, ProblemâSee Also
- privileged methods, Discussion
- processing XML documents, ProblemâSee Also
- product property (Navigator), Discussion
- profiling application performance, ProblemâSee Also
- prompt pop up boxes, Discussion
- properties, object
- property descriptor objects, Discussion
- protocol property (location element), Discussion
- prototypal inheritance, Introduction, ProblemâDiscussion
- Prototype.js library, Discussion, ProblemâDiscussion
- prototype objects, Expanding Objects with prototypeâDiscussion
- adding getter/setter functions to, Discussion
- prototype property, Discussion, Discussion, Discussion
- prototype property (Array), See Also
- pruneParagraph function, Discussion
- push method (Array), Solution, Discussion
- pushState method (History), ProblemâDiscussion
- PUT requests, about, Discussion
Q
- quadraticCurveTo method (canvas), Discussion
- querySelector method, The Standardized DOMs, Discussion
- querySelectorAll method, Discussion, The Standardized DOMs, Discussion
- ? (question mark)
- in regular expressions, Discussion
- ternary operator, Discussion
- queues, Discussion
- quirks mode, Discussion
- ' (single quotes) for strings, A String Primitive
- " (double quotes) for strings, A String Primitive
R
- radians, converting with degrees, ProblemâDiscussion
- radio buttons clicks, acting on, ProblemâSee Also
- radiobutton elements, Discussion
- radix parameter, parseInt function, Discussion
- random color generation, ProblemâSee Also
- random method (Math), The Math Object, Solution
- random number generation, ProblemâDiscussion
- RangeError errors, Discussion
- RangeException exceptions, Discussion
- RDF plug-in, ProblemâSee Also
- RDF (Relational Data Framework), about, Discussion
- RDFa, converting into JSON, ProblemâSee Also
- rdfQuery, ProblemâSee Also
- ready event, Discussion
- readyState property (XMLHttpRequest), Discussion, Discussion
- readyState property (XMLHttpRequest), Discussion
- recurring timers, ProblemâDiscussion
- recursion, Discussion
- recursive algorithms, ProblemâSee Also
- refactoring code, Discussion
- ReferenceError errors, Discussion
- Refresh button, preserving state for, ProblemâSee Also
- RegExp literals, A RegExp Literal
- RegExp objects, RegExp As Object
- regular expressions, IntroductionâDiscussion
- finding all instances of pattern, ProblemâSee Also
- replacing certain substrings, ProblemâSee Also
- replacing HTML with named entities, ProblemâDiscussion
- searching for special characters, ProblemâDiscussion
- with String.split method, Discussion
- swapping order of strings, ProblemâDiscussion
- testing for contained substrings
- case-insensitive matching, ProblemâDiscussion
- case-sensitive matching, ProblemâDiscussion
- trimming strings of whitespace, ProblemâDiscussion
- validating social security numbers, ProblemâSee Also
- relational data stores, ProblemâSee Also
- reload events, Some Common Events
- removals value (aria-relevant attribute), Discussion
- removeAttribute method, Solution
- removeAttributeNS method, Discussion
- removeChild method, Solution, Solution
- removeEventListener method, Creating a universal stop-listening function
- removing (see deleting (removing))
- replace method (String), Solution
- special patterns for, Discussion
- replacer functions, Solution
- replaceState method (history), Solution
- replacing
- requests, Ajax (see XMLHttpRequest objects)
- resource window (Safari), Discussion
- responseText property (XMLHttpRequest), Discussion
- responseXML property (XMLHttpRequest), Discussion, Solution
- REST guidelines, Discussion
- return statements, Discussion
- return values, functions, ProblemâSee Also
- RGB values, random, Solution
- rich media, IntroductionâSee Also
- accessing SVG from page scripts, ProblemâDiscussion
- adding JavaScript to SVG, ProblemâDiscussion
- building analog clock, ProblemâDiscussion
- controlling video from JavaScript, ProblemâSee Also
- embedding SVG into HTML pages, ProblemâSee Also
- emulating SVG in IE, ProblemâSee Also
- integrating SVG and canvas, ProblemâDiscussion
- running routine with audio file, ProblemâSee Also
- using canvas (see canvas elements)
- WebGL support, ProblemâSee Also
- right-padding strings, ProblemâSee Also
- right property (bounding rectangle), Discussion
- role attribute (ARIA), Discussion
- round method (Math), The Math Object
- rows, table
S
- \s in regular expressions, A RegExp Literal, A RegExp Literal
- \S in regular expressions, A RegExp Literal
- Safari, WebGL support in, ProblemâSee Also
- Safari orientation events, ProblemâSee Also
- Safariâs development tools, ProblemâSee Also
- using breakpoints, ProblemâDiscussion
- same-origin security restriction, Discussion
- saving (see storing (saving))
- scheduling future dates, ProblemâDiscussion
- scope, function, Discussion, ProblemâDiscussion
- screen elements, Introduction, Solution
- screen readers, Introduction, Introduction
- (see also accessibility)
- Script Debugger (IE), Discussion
- script elements, Introduction
- adding JavaScript to SVG, Solution
- scripting, handling when disabled, ProblemâSee Also
- scripts, accessing SVG from, ProblemâDiscussion
- Scripts panel (Dragonfly), Solution
- scroll events, Some Common Events
- seal method (Object), Solution, Discussion
- search property (location element), Discussion
- searching
- secure parameter (cookies), Discussion
- select event (textarea element), Discussion
- selection elements (forms), Discussion
- selection lists
- dynamic, ProblemâSee Also
- populating from server, ProblemâDiscussion
- Selectors API, Solution
- send method (XMLHttpRequest), Discussion
- sendAsBinary method (XMLHttpRequest), Discussion
- sessionStorage objects, ProblemâSee Also
- setAttribute method, Discussion, SolutionâNamespace Variation, Solution
- setDate method (Date), The Date Object, Discussion
- setFullYear method (Date), The Date Object, Discussion
- setHours method (Date), The Date Object, Discussion
- setInterval method (Window), JavaScript Timers
- function closures with timers, ProblemâSee Also
- recurring timers, ProblemâDiscussion
- setMilliseconds method (Date), The Date Object, Discussion
- setMinutes method (Date), The Date Object, Discussion
- setMonth method (Date), The Date Object
- setRequestHeader method (XMLHttpRequest), Discussion, Solution
- setSeconds method (Date), The Date Object, Discussion
- setTime method (Date), The Date Object
- setTimeout method (Window), JavaScript Timers, ProblemâSee Also
- Settings panel (Dragonfly), Discussion
- setUp function (JsUnit), Discussion
- setUTCDate method (Date), The Date Object, The Date Object
- setUTCFullYear method (Date), The Date Object
- setUTCHours method (Date), The Date Object
- setUTCMilliseconds method (Date), The Date Object
- setUTCMinutes method (Date), The Date Object
- setUTCMonth method (Date), The Date Object
- shapes, creating with canvas elements, ProblemâSee Also
- shift method (Array), Solution, Discussion
- shims, HTML5, Discussion
- shorthand assignment (+=) operator, Discussion
- sidebar, collapsing or resizing, ProblemâDiscussion
- sin method (Math), The Math Object, Discussion
- ' (single quotes) for strings, A String Primitive
- size
- canvas elements, Discussion
- of elements, measuring, ProblemâDiscussion
- of window, measuring, ProblemâSee Also
- / (slash) for RegExp objects, A RegExp Literal
- slice method (Array), Discussion
- smart phone development, ProblemâSee Also
- Snippet Editor (Safari), Discussion
- social security numbers, validating, ProblemâSee Also
- some method (Array), Solution
- sort method (Array), Discussion
- sorting arrays
- alphabetically, ProblemâDiscussion
- FIFO (first-in, first out), ProblemâDiscussion
- LIFO (last-in, first-out), ProblemâDiscussion
- sound (see audio elements; rich media)
- Source Forge, Discussion
- space on web pages (see page space)
- space (whitespace)
- matching in regular expressions, A RegExp Literal
- nonbreaking space character, Solution
- trimming from form data, Solution
- trimming from strings, ProblemâSee Also
- using regular expressions, ProblemâDiscussion
- span elements, to collapse sidebars, ProblemâDiscussion
- special characters
- inserting into strings, ProblemâDiscussion
- searching for, ProblemâDiscussion
- special characters in regular expressions, A RegExp Literal
- splice method (Array), Solution
- split method (String), Discussion, Solution
- for parsing dates, Discussion
- parsing lines of textareas, Solution
- spoofing, Discussion
- SQL for persistence, ProblemâSee Also
- sqrt method (Math), The Math Object
- SQRT1_2 property (Math), The Math Object
- SQRT2 property (Math), The Math Object
- srcElement property, Discussion
- stack property (Error), Discussion
- stacks, Discussion
- static functions, Discussion
- status property (XMLHttpRequest), Discussion, Discussion
- statusText property (XMLHttpRequest), Discussion, Discussion
- Step Into control (Firebug), Discussion
- Step Out control (Firebug), Discussion
- Step Over control (Firebug), Discussion
- stopping listening for events, Creating a universal stop-listening functionâCreating a universal stop-listening function
- stopPropagation method, Discussion
- Storage objects, Discussion
- storing
- storing (saving)
- === (strict equality) operator, Discussion
- !== (strict inequality) operator, Discussion
- Strict mode, See Also
- String objects, A String Object
- stringify method, Discussion
- stringify method, Solution, Discussion
- strings, IntroductionâSee Also
- comma-delimited, breaking apart, ProblemâSee Also
- comparing, ProblemâSee Also
- concatenating two or more, ProblemâDiscussion
- concatenating with other data types, ProblemâDiscussion
- converting to numbers, ProblemâDiscussion
- empty, checking for, ProblemâDiscussion
- extracting substrings from, ProblemâSee Also
- inserting special characters into, ProblemâDiscussion
- joining array elements into, ProblemâDiscussion
- JSON-formatted
- left- or right-padding, ProblemâSee Also
- lines of textarea, processing, ProblemâSee Also
- pattern matching (see regular expressions)
- replacing with strings, ProblemâSee Also
- searching for substrings, ProblemâSee Also
- swapping order of, ProblemâDiscussion
- testing for contained substrings
- case-insensitive matching, ProblemâDiscussion
- case-sensitive matching, ProblemâDiscussion
- trimming whitespace from, ProblemâSee Also
- using regular expressions, ProblemâDiscussion
- striping theme for unordered lists, ProblemâSee Also
- stroke method (canvas), Discussion
- strokeRect method (canvas), Discussion
- structured data, IntroductionâSee Also
- style objects, Discussion
- style properties
- styles for HTML elements, in older browsers, ProblemâSee Also
- stylesheets, changing based on color support, ProblemâSee Also
- subarrays
- creating arrays from, ProblemâDiscussion
- filtering arrays to create, ProblemâSee Also
- submit elements, Discussion
- submit events, Some Common Events
- submitting forms (see forms)
- substrings
- of comma-delimited strings, ProblemâSee Also
- extracting from strings, ProblemâSee Also
- replacing with other substrings, ProblemâSee Also
- searching for, ProblemâSee Also
- swapping order of, ProblemâDiscussion
- testing strings for
- case-insensitive matching, ProblemâDiscussion
- case-sensitive matching, ProblemâDiscussion
- summing numbers, ProblemâSee Also
- summing table elements, ProblemâSee Also
- .svg files, Discussion
- SVG (Scalar Vector Graphics)
- access from web page scripts, ProblemâDiscussion
- adding JavaScript to, ProblemâDiscussion
- defined, Introduction
- embedding into HTML pages, ProblemâSee Also
- emulating in IE, ProblemâSee Also
- integrating with canvas in HTML, ProblemâDiscussion
- SVGWeb library, Solution, Discussion
- SyntaxError errors, Discussion
T
- \t (tab) character, Discussion
- matching in regular expressions, A RegExp Literal
- tab character, Discussion
- matching in regular expressions, A RegExp Literal
- tab role (ARIA), Solution, Discussion, Solution
- tabindex property, Discussion, Discussion
- tables
- tablist role (ARIA), Solution, Discussion, Solution
- tabpanel role (ARIA), Solution, Solution
- tabs (divided content), ProblemâSee Also
- tearDown function (JsUnit), Discussion
- ternary (?) operator, Discussion
- test method (RegExp), Solution
- testing code with JsUnit, ProblemâDiscussion
- text elements (forms), Discussion
- text input (forms), accessing, ProblemâSee Also
- text results to Ajax requests, processing, ProblemâSee Also
- text value (aria-relevant attribute), Discussion
- textareas
- events for, Discussion
- lines in, processing, ProblemâSee Also
- observing character input for, ProblemâSee Also
- textInput events, Discussion
- TextRectangle objects, Discussion
- this context, Discussion
- this keyword, Discussion, ProblemâDiscussion
- throw statements, Solution
- throwing exceptions, Solution
- Thunderbird extensions, building, Mozilla extensionsâMozilla extensions
- time (see date and time; tiers)
- timed page updates, ProblemâSee Also
- timeouts, ProblemâSee Also
- timerEvent function, Solution
- timers, JavaScript Timers
- title elements, Introduction
- todayâs date, printing, ProblemâDiscussion
- toISOString method (Date), Discussion
- toLowerCase method (String), Discussion
- tools, extending with JavaScript, ProblemâCreating an OpenOffice macro
- top property (bounding rectangle), Discussion, Solution
- toString method, Introduction, Solution
- touch swiping events, New Events, New Uses
- toUpperCase method (String), Discussion
- tr elements
- trigonometric methods (Math object), The Math Object, Discussion
- trim method (String), Solution, Solution
- trimming strings of whitespace, ProblemâSee Also
- using regular expressions, ProblemâDiscussion
- triples, RDF, Discussion
- try statements, for exception handling, Discussion
- TypeError errors, Discussion
- typeof operator, Solution, Discussion
U
- undefined array elements, Introduction
- undefined data type, Discussion
- Unicode sequences, Discussion
- unit testing, Discussion
- universal selector (*), Solution
- unload events, Some Common Events
- warnings when leaving pages, Solution
- unordered lists, applying striping theme to, ProblemâSee Also
- uppercase (see case)
- URIError errors, Discussion
- URLs, adding persistent information to, ProblemâSee Also
- user error, about, Introduction
- user input, form (see forms)
- user input, validating (see validating)
- userAgent property (Navigator), Discussion
- UTC date and time, printing, ProblemâSee Also
- UTCString method (Date), Discussion
V
- validating
- array contents, ProblemâSee Also
- checking for function errors, ProblemâDiscussion
- with forms
- function arguments (input), Discussion
- highlighting invalid form fields, ProblemâSee Also
- with jQuery Validation plug-in, Solution
- social security numbers, ProblemâSee Also
- value attribute (objects), Discussion
- valueOf method, Solution, Discussion
- variable values, checking, ProblemâDiscussion
- vendor property (Navigator), Discussion
- video (see rich media)
- video elements, Introduction, ProblemâSee Also
- visibility property (CSS), Discussion, Solution
- VoiceOver screen reader, Introduction
W
- \w in regular expressions, A RegExp Literal
- \W in regular expressions, A RegExp Literal
- warn function (JsUnit), Discussion
- Watch panel (Firebug), Discussion
- Web Inspector (Safari), Discussion
- web page elements (see elements)
- web page space (see page space)
- web pages (see document elements; pages)
- web-safe colors, Discussion
- Web Sockets API, Introduction, Discussion
- Web Workers, ProblemâSee Also
- WebGL (Web Graphics Library), Introduction, ProblemâSee Also
- WebKit (Google)
- .wgt files, The Opera Widgets development environment
- while loop, iterating through arrays with, Discussion
- whitespace, Introduction
- (see also page space)
- matching in regular expressions, A RegExp Literal
- nonbreaking space character, Solution
- trimming from form data, Solution
- trimming from strings, ProblemâSee Also
- using regular expressions, ProblemâDiscussion
- widgets, creating, ProblemâThe Opera Widgets development environment
- width (see size)
- width attribute (canvas element), Discussion
- width property (bounding rectangle), Discussion
- width property (Screen), Solution
- window area, measuring, ProblemâSee Also
- window elements, Introduction, Introduction
- creating new stripped-down, ProblemâDiscussion
- open method, Solution
- window space (see page space)
- windows, communicating across, ProblemâDiscussion
- Windows-Eyes, Introduction
- words, Problem
- (see also strings)
- swapping order of, ProblemâDiscussion
- writable attribute (objects), Discussion, Discussion
X
- X3D, Introduction
- XML documents
- XMLHttpRequest objects
- XScriptContext objects, Creating an OpenOffice macro
Get JavaScript Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.