Chapter 4. D

Table of Contents
Data Type The type of data contained in a variable or described by a literal.
Data-tainting A mechanism for marking data in the client and controlling its use. An obsolete security work-around.
database object An object that encapsulates the access to a back end database from Netscape Enterprise Server.
database.beginTransaction() Marks the beginning of a transaction with the database.
database.commitTransaction() Commits the changes made during this transaction.
database.connect() Forms a connection to the database using the database type to select the correct one.
database.connected() A flag, indicating the connection status for this database object.
database.cursor() Creates a new cursor object with the SQL supplied in the argument.
database.disconnect() Severs the current connection to the database.
database.execute() Executes the SQL passed in the argument.
database.majorErrorCode() Returns the error code for an error that may have happened in the database or the interface to it.
database.majorErrorMessage() Returns the error message text for an error that may have happened in the database or the interface to it.
database.minorErrorCode() Returns a supplementary error code for an error that may have happened in the database or the interface to it.
database.minorErrorMessage() Returns a supplementary error message text for an error that may have happened in the database or the interface to it.
database.prototype The prototype for the database object that can be used to extend the interface for all database objects.
database.rollbackTransaction() Undoes any changes made in the current transaction.
database.SQLTable() Creates an HTML table based on the results of the SQL query provided in the argument.
database.storedProc() Creates a stored procedure object and runs the specified stored procedure in the database.
database.storedProcArgs() Creates a prototype for a stored procedure and controls the argument passing.
database.toString() Returns a string equivalent of the database object.
dataTransfer object An object used during drag and drop operations to provide access to data being dragged.
dataTransfer.clearData() Clears any data currently in the transfer object.
dataTransfer.dropEffect Set the effect when the element is dropped.
dataTransfer.effectAllowed Indicates whether the drop effect is allowed or not.
dataTransfer.getData() Gets the data from the transfer object.
dataTransfer.setData() Sets the data in the transfer object.
Date and time There is a variety of ways to work with dates and times.
Date constant A constant date value.
Date from time A date and time algorithm defined by ECMAScript.
Date number A date and time algorithm defined by ECMAScript.
Date object An object of the class "Date".
Date() A Date object constructor.
Date() A function that returns the current date.
Date.Class Internal property that returns an object class.
Date.constructor A reference to a constructor object.
Date.getDate() Returns the day number within a month for a date/time.
Date.getDay() Returns the weekday number for a date/time.
Date.getFullYear() Returns the full year for a date/time.
Date.getHours() Returns the hour value for a date/time.
Date.getMilliseconds() Returns the milliseconds value of a date/time.
Date.getMinutes() Returns the minutes value of a date/time.
Date.getMonth() Returns the month value of a date/time.
Date.getSeconds() Returns the seconds value of a date/time.
Date.getTime() Returns the time value of a date/time.
Date.getTimezoneOffset() Returns the time zone offset for the date/time.
Date.getUTCDate() Returns the UTC day of month value for a date/time.
Date.getUTCDay() Returns the UTC weekday number for a date/time.
Date.getUTCFullYear() Returns the UTC full year value for a date/time.
Date.getUTCHours() Returns the UTC hours value for a date/time.
Date.getUTCMilliseconds() Return the UTC milliseconds for a date/time.
Date.getUTCMinutes() Returns the UTC minutes value for a date/time.
Date.getUTCMonth() Returns the UTC month number for a date/time.
Date.getUTCSeconds() Returns the UTC seconds value for a date/time.
Date.getVarDate() A special date format for use with ActiveX objects.
Date.getYear() Returns a 2 digit non-Y2K compliant year for a date/time.
Date.length The length of a date object.
Date.parse() A class based factory method for converting strings to Date objects.
Date.prototype The prototype for the Date object that can be used to extend the interface for all Date objects.
Date.setDate() Sets the day number within a month of the time object.
Date.setFullYear() Sets the full year value of a date/time object.
Date.setHours() Sets the hours of a date/time object.
Date.setMilliseconds() Sets the milliseconds value of the time object.
Date.setMinutes() Sets the minutes of the time object.
Date.setMonth() Sets the month number of the time object.
Date.setSeconds() Sets the seconds value of the time object.
Date.setTime() Sets the time value of the time object.
Date.setUTCDate() Sets the UTC day within a month of the time object.
Date.setUTCFullYear() Sets the UTC full year value of the time object.
Date.setUTCHours() Sets the UTC hours of the time object.
Date.setUTCMilliseconds() Set the UTC milliseconds value of the time object.
Date.setUTCMinutes() Sets the UTC minutes of the time object.
Date.setUTCMonth() Sets the UTC month number of the time object.
Date.setUTCSeconds() Sets the UTC seconds value of the time object.
Date.setYear() Sets a non-Y2K compliant year number of the time object.
Date.toDateString() The value of the Date object is presented just as a date.
Date.toGMTString() Converts a Date object to a string containing a GMT time.
Date.toLocaleDateString() The value of the Date object is presented just as a date taking the present locale into consideration.
Date.toLocaleString() Converts a Date object to a string with the locale specific time.
Date.toLocaleTimeString() The value of the Date object is presented just as a time taking the present locale into consideration.
Date.toSource() Outputs a date formatted as a Date literal contained in a string.
Date.toString() Return a string primitive version of an object.
Date.toTimeString() The value of the Date object is presented just as a time.
Date.toUTCString() Converts a Date object to a string with UTC time.
Date.UTC() A class based factory method for converting numeric values to Date objects.
Date.valueOf() Returns a number that is the date and time value for the receiving Date object.
Day from year A date and time algorithm defined by ECMAScript.
Day number A date and time algorithm.
Day within year A date and time algorithm defined by ECMAScript.
Daylight savings time adjustment An adjustment to the local time value.
Days in year A date and time algorithm.
DbPool object An object of the class "DbPool" which provides a means of pooling connections to multiple databases.
DbPool() Used for creating new pools of connections to a database.
DbPool.connect() Connect the DbPool object to a database.
DbPool.connected() A flag that indicates the connection status for this DbPool object.
DbPool.connection() Requests a connection object from the pool of available connections.
DbPool.disconnect() Disconnect from the database discarding all connections in the pool in the process.
DbPool.majorErrorCode() Returns an error code value for an error that happened in the database or the interface to it.
DbPool.majorErrorMessage() Returns an error message text for an error that happened in the database or the interface to it.
DbPool.minorErrorCode() Returns a supplementary error code value for an error that happened in the database or the interface to it.
DbPool.minorErrorMessage() Returns a supplementary error message text for an error that happened in the database or the interface to it.
DbPool.prototype The prototype for the DbPool object that can be used to extend the interface for all DbPool objects.
DbPool.storedProcArgs() Creates a prototype for a stored procedure and controls the argument passing.
DbPool.toString() Returns a string primitive version of the DbPool object.
DD object An object that represents the <DD> HTML tag.
DD.noWrap A switch to control text wrapping within the <DD> block.
Debugger A tool to help with the location of bugs in your script.
debugger Reserved for future language enhancements.
Debugging - client side How to debug faulty client side scripts.
Debugging - server side How to debug faulty stand-alone scripts.
Decimal point (.) A delimiter that marks the beginning of the fractional part of a floating point value.
Decimal value A numeric value based on a radix of 10.
Declaration Declares the attributes of an identifier.
Declared function A function can be declared in the script source text.
decodeURI() This ECMA defined function can be used to decode an entire URI value that was encoded with the encodeURI() function.
decodeURIComponent() This ECMA defined function can be used to decode a URI component value that was encoded with the encodeURIComponent() function.
Decrement value (--) Pre or post decrementing operator.
Deep copying Making a duplicate of objects, property by property.
default: A target label for use with the switch statement as a catch-all for any unmatched cases.
defaultStatus The default status text of the window.
DefaultValue() Internal private function.
Defensive coding Allowing your scripts to be downwards compatible and coding for portability and robustness.
Definition Define the storage for an identifier.
DEL object An object that represents a <DEL> HTML tag within the document.
DEL.cite A URL that references a document that describes why the item was deleted.
DEL.dateTime The date and time that the deletion occurred.
delete Property deletion operator.
Delete() Internal private function.
Deprecated functionality Some language features are to be discontinued in later versions of the language.
Desktop JavaScript Control of desktop automation with JavaScript.
detachEvent() A means of detaching events from windows and documents that were previously attached with the attachEvent() method.
Determining the object type To determine what kind of object type you have, this function may be useful.
Developing JavaScript source code Techniques for easing developer headaches.
DFN object An object representing the HTML content delimited by the <DFN> HTML tags.
DHTML Dynamic HTML controlled by JavaScript. A fourth generation browser technology for dynamically altering the document that describes a web page.
DHTML Behavior A mechanism for enhancing the dynamic capabilities of HTML.
Diagnostic message A message from the interpreter warning you about a script error.
Dialog boxes User communication is effected by means of several different dialog boxes.
Dialog object This is the parent object of a frame within a modal dialog window.
dialogArguments The arguments passed to a modal dialog window.
dialogHeight The height of a modal or modeless dialog window.
dialogLeft The offset to the left edge of a modal or modeless dialog window. In IE 4, the default measure is the em, in IE 5 it is the pixel.
dialogTop The offset to the top edge of a modal or modeless dialog window. In IE 4, then default measure is the em, in IE 5 it is the pixel.
dialogWidth The width of a modal or modeless dialog window. In IE 4, the default measure is the em, in IE 5 it is the pixel.
Dictionary object A name-value collection object created by the Active X facilities.
Dictionary.Add() Add a new item to the Dictionary.
Dictionary.Count Return a count of the number of items in the dictionary.
Dictionary.Exists() Returns a flag indicating whether a key has an item associated with it in the Dictionary.
Dictionary.Item() Returns a reference to the Item container for a key.
Dictionary.Items() Returns an array containing all Items in the dictionary.
Dictionary.Key() Returns a reference to the named key container.
Dictionary.Keys() Return a collection of all the keys currently defined in the Dictionary.
Dictionary.Remove() Remove a key name and its item value from the Dictionary.
Dictionary.RemoveAll() Remove all key names and item values from the Dictionary.
Digit A decimal numeric character.
DIR object A somewhat deprecated object that is now superseded by the <UL> HTML tag and its object representation. This object represents the contents of a <DIR> HTML tag.
DIR.compact An attribute that controls the display of <DIR> items and the amount of space they require on the screen.
disableExternalCapture() Part of the Netscape 4 event propagation complex.
DIV object An object that represents a <DIV> block level element.
DIV.align The alignment for content within a <DIV> block.
Divide (/) Divide one operand by another.
Divide then assign (/=) Divide one operand by another and put the result in the first.
DL object An object that represents a definition list defined by a <DL> HTML tag.
DL.compact An attribute that controls the display of <DD> and <DT> items and the amount of space they require on the screen.
do ... while( ... ) A variant of the while iterator that checks the condition after execution.
Doctype object An object that represents the document type DTD.
Doctype.entities[] A named node map containing all the general entities within the DTD.
Doctype.name The name of the DTD that the Doctype encapsulates.
Doctype.notations[] A named node map containing the notations declared in the DTD encapsulated by the Doctype object.
Document An organized collection of objects that represent a document.
document The document within the current window.
Document component A component object within a document object model.
Document event handlers A property containing a reference to an event handler property.
Document object An object that represents the document currently loaded into the window. This exposes the contents of the HTML document through a variety of collections and properties.
Document.<form_name> The name of a form if the document contains a <FORM> tag.
Document.activeElement The input element that currently has input (keyboard and mouse) focus.
Document.alinkColor The color of a link on the page while it is being activated.
Document.all[] A collection object containing references to every object in the MSIE DOM.
Document.anchors[] An array of all the anchor objects in the document.
Document.applets[] An array containing a list of all the applets in the document.
Document.attachEvent() A means of attaching events to windows and documents.
Document.background DOM originally intended this to be the URL of a background image for the current document.
Document.bgColor The background color of the document.
Document.body The contents of the <BODY> tag.
Document.captureEvents() Part of the Netscape 4 event propagation complex.
Document.characterset A Netscape 6.0 equivalent of the Document.charset property.
Document.charset The character set currently being used.
Document.classes[] Part of the JSS style control model supported only by Netscape .
Document.clear() A deprecated method that clears the document.
Document.close() Close a document body after you have finished writing to it.
Document.contextual() Returns a style object that represents the contextual style for the receiver.
Document.cookie Access to a cookie for the current document.
Document.createAttribute() Creates an Attribute object that can then set on an Element with the setAttributeNode() method.
Document.createCDATASection() Creates a new CDATASection object whose value is the string passed as an argument.
Document.createComment() Creates a new comment node object containing the data passed in the string argument.
Document.createDocumentFragment() Creates a new and empty document fragment.
Document.createElement() A method to create a new element within a document.
Document.createEntityReference() A new EntityReference object is created. It may acquire the same child list as the entity it refers to.
Document.createProcessingInstruction() A new processing instruction node is created. Its name and content are specified by the arguments.
Document.createStyleSheet() A style sheet factory method.
Document.createTextNode() A means of constructing a new textNode object.
Document.defaultCharset The default character set of the document.
Document.designMode Part of a page authoring control system built into the MSIE browser.
Document.detachEvent() A means of detaching events from windows and documents that were previously attached with the attachEvent() method.
Document.doctype The current document type of the document.
Document.documentElement An HTML element that represents the document.
Document.domain A means of allowing web servers that trust one another to allow normally insecure access from one another's documents.
Document.elementFromPoint() Determine which element is under a particular x, y location.
Document.embeds[] An array of all the <EMBED> tag objects within the document.
Document.execCommand() Part of an MSIE special document command handling mechanism. A method for executing commands.
Document.expando A means of locking objects to prevent new properties being added.
Document.fgColor The foreground color for text in the current document.
Document.fileCreatedDate The date that the document file was created.
Document.fileModifiedDate The date that the document file was last modified.
Document.fileSize The size in bytes of the file that was received by the browser.
Document.forms[] An array containing a list of all the forms in the document.
Document.frames[] An array containing references to all the frame objects within a document.
Document.getElementById() An accessor method for retrieving objects from within the DOM hierarchy specifically according to their ID value.
Document.getElementsByName() An accessor method for retrieving objects from within the DOM hierarchy specifically according to their NAME value.
Document.getElementsByTagName() A node list is returned that contains references to all the child elements having the specified tag name.
Document.getSelection() Return the currently selected text string.
Document.handleEvent() Pass an event to the appropriate handler for this object.
Document.height The height of the document.
Document.ids[] Part of the JSS model supported only by Netscape 4.
Document.images[] An array containing a list of all the images in the document.
Document.implementation A reference to a DOM Implementation object.
Document.lastModified The modification date of the document is stored in this property.
Document.layers[] An array containing a list of layers in the document.
Document.linkColor The color of links that have not yet been visited.
Document.links[] An array of links in the document.
Document.location This is another name for the Document.URL property.
Document.open() Open a document body ready for writing.
Document.parentWindow The window object that contains the document.
Document.plugins[] Another (confusing) name for the document.embeds property and NOT the navigator.plugins property.
Document.protocol The protocol that was used when the document was loaded.
Document.queryCommandEnabled() Part of an MSIE special document command handling mechanism. Indicates if a command is available for a document or text range.
Document.queryCommandIndeterm() Part of an MSIE special document command handling mechanism. Indicates whether the command is in the indeterminate state.
Document.queryCommandState() Part of an MSIE special document command handling mechanism. The current state of a command for the document or text range.
Document.queryCommandSupported() Part of an MSIE special document command handling mechanism. Indicates whether the document or text range supports a command.
Document.queryCommandText() Part of an MSIE special document command handling mechanism.
Document.queryCommandValue() Part of an MSIE special document command handling mechanism. The value of a command for a document or text range.
Document.readyState The current downloading status disposition of the document.
Document.recalc() A special MSIE supported method that sends a recalculation event to a document.
Document.referrer The URL of the document that was displayed when the user clicked on a link to request this document.
Document.releaseEvents() An alias for the window.releaseEvents() method.
Document.routeEvent() Part of the Netscape event propagation complex.
Document.scripts[] An array of all the <SCRIPT> blocks in a document.
Document.selection The selected text within the object.
Document.styleSheets[] An array containing a list of style sheets in an MSIE document.
Document.tags[] Part of the JSS model supported only by Netscape 4.
Document.title The title text for the document.
Document.uniqueID A unique ID value for this document.
Document.URL This is the actual URL that was loaded for the document.
Document.vlinkColor The color of a visited link in the current document.
Document.width The width of the document.
Document.write() A method for writing HTML into the document body.
Document.writeln() A method for writing HTML into the document body.
DocumentEvent An interface that extends the Document object to support a DOM compliant event structure.
DocumentEvent.createEvent() A method to create a new event object ready to be dispatched to an EventTarget.
DocumentFragment object The DOM specification calls this a lightweight or minimal document object. It can be used as a temporary store for a part of the document hierarchy.
DocumentStyle object Added at DOM level 2 to support document related stylesheets.
DocumentType object This is implemented in MSIE as a Doctype object.
DOM A standardized model of a document built with objects.
DOM - Level 0 The initial collation of document objects and properties from the de-facto HTML & JavaScript implementations.
DOM - Level 1 A standardized model of a document built with objects.
DOM - Level 2 A standardized model of a document built with objects.
DOM - Level 3 An improved model of the document object structure.
DOM Events A new modular part of the DOM standard introduced at level 2 and implemented in Netscape 6.
Domain error An error in computation that would normally crash a compiled program.
DOMImplementation object MSIE implements this class as the Implementation object.
DontDelete An internal property attribute that prevents a property from being deleted.
DontEnumerate An internal property attribute that prevents a property from being enumerated.
double Reserved for future language enhancements.
Double-precision A type of number value.
Drive object A special JScript object to represent a disk drive.
Drive.AvailableSpace The amount of free space on the drive.
Drive.DriveLetter The name of the drive.
Drive.DriveType The kind of disk media in the drive.
Drive.FileSystem The kind of file system on the drive.
Drive.FreeSpace The amount of free space left on the drive.
Drive.IsReady Whether the drive is ready to be used.
Drive.Path The path for the specified drive.
Drive.RootFolder A folder object that represents the root folder for the drive.
Drive.SerialNumber The serial number of the drive.
Drive.ShareName If the drive is shared, then this is its shared name.
Drive.TotalSize The total space available on the disk if it were empty.
Drive.VolumeName Access to the volume name of the drive.
Drives object A collection of drives belonging to a file system.
DropShadow() A visual filter for creating drop shadows.
DT object An object that represents the content of a <DT> tag.
DT.noWrap Controls the wrapping of text within a <DT> block.
DVB-MHP Digital Video Broadcasting - Multimedia Home Platform.
Dynamic HTML A fourth generation browser technology for dynamically altering the document that describes a web page.
Dynamic positioning Cascading style properties for positioning objects within the page.