data types
typeof operator for examining,
63
data types, primitive
conversion rules for,
65–66
object types corresponding to,
188
promoting to objects,
66–67
dataTransfer object, proprietary browser objects,
788–789
converting dates to strings,
177
converting strings to dates,
177–178
limitations of date representation,
178
list of common errors and symptoms,
701–702
manually outputting debugging information,
702–703
deceptive programming tactics, browser security,
692
decode( ) methods, Global methods,
180
defaultStatus property, Window object,
367
defensive programming
browser capabilities detection,
718–720
error reporting, automatic,
712–714
try, catch, and throw statements,
715–717
del object, HTMLModElement,
794
delete operator
removing array elements,
162
removing instance properties,
137
DHTML Behaviors compared with,
670
Document object collections related to,
397–398
Netscape positioned regions,
478–479
sparing use of DHTML effects,
504
attaching to elements,
665
compared with tradition DHTML,
670
storing client-side state,
532
dir object, HTMLDirectoryElement,
795
disabled attribute, form fields,
457
dispatchEvent( ) method, DOM2,
340–341
display( ) method, Array object,
172
div object, HTMLDivElement,
795–796
<div>
correspondence to HTMLDivElement,
796
dl object, HTMLDListElement,
796
accessing using associative arrays,
232
DOM Level 1 properties and collections,
398–399
element access by name,
231
element access by position,
230
last modification date,
388
lowest common denominator document properties and methods,
225–229
object-related collections,
396–397
as component of object model,
221
plainText object, deprecated,
854
document objects, proprietary
document property, Window object,
134
document trees, DOM
browser differences in navigating,
261–262
document type definition (DTD),
607–608
documentElement property, Document object,
263
dollar sign($), positional indicator,
194
DOM (Document Object Model),
249–295
(X)HTML elements associated with,
402–404
browser and capability detection,
720
document tree navigation, browser differences,
261–262
document tree starting points,
262–263
getElementsByName( ) method,
262
getElementsByTagName( ) method,
263–264
Internet Explorer XML example,
620–624
node deletion and replacement,
268–269
DOM Level 2
hasAttributes( ) method,
271
styleSheets[ ] collection,
285
double ampersand (&&), logical operator,
89
double pipe(||), logical operator,
89
doubling string, browser security,
691
DTD (document type definition),
607–608
dynamic content, remote JavaScript,
589–592