Methods and Properties of the Document Object : JavaScript DHTML examples (example source code) » Development » Document

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   Development   » [  Document  ]   
 



Methods and Properties of the Document Object


/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 

ISBN: 067231763X
Publisher Sams CopyRight 2000


+------------+----------------+------------------------------------------+
  Type        Item              Description
+------------+----------------+------------------------------------------+
  Methods     captureEvents()   Captures events to be handled by the document. 
                                This method was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              close()           Closes output stream to the document.
+------------+----------------+------------------------------------------+
              contextual()      Allows you to selectively apply a style to an 
                                HTML element that appears in a specific context. 
                                This method was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              getSelection()    Returns the selected text. This method was added 
                                in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              handleEvent()     Invokes the handler for the specified event. 
                                This method was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              open()            Opens output stream to document.
+------------+----------------+------------------------------------------+
              releaseEvents()   Releases events captured by the document. 
                                This method was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              routeEvent()      Routes captured events to other objects. 
                                This method was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              write()           Appends text to the document.
+------------+----------------+------------------------------------------+
              writeln()         Appends text and a newline character to the 
                                document.
+------------+----------------+------------------------------------------+
 Property
+------------+----------------+------------------------------------------+
              alinkColor        Color of an activated link.
+------------+----------------+------------------------------------------+
              all               Array of all HTML tags in the document. 
                                This method was added in JScript 3.0.
+------------+----------------+------------------------------------------+
              anchors           Array of Anchor objects. This property was 
                                added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              applets           Array of Applet objects. This property was 
                                added in JavaScript 1.1.
+------------+----------------+------------------------------------------+
              bgcolor           Background color of the document.
+------------+----------------+------------------------------------------+
              classes           Style sheet classes array. This property was 
                                added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              cookie            Cookie associated with the document.
+------------+----------------+------------------------------------------+
              domain            Domain of the document. This property was added 
                                in JavaScript 1.1.
+------------+----------------+------------------------------------------+
              embeds            Array of embedded objects. This property was added 
                                in JavaScript 1.1.
+------------+----------------+------------------------------------------+
              fgcolor           Color of text in the document.
+------------+----------------+------------------------------------------+    
              forms             Array of Form objects.
+------------+----------------+------------------------------------------+
              formName          Specifies Form instance, which is accessed by 
                                using the value of the name attribute in the 
                                form tag. This property was added in 
                                JavaScript 1.1.
+------------+----------------+------------------------------------------+
              height            Specifies height in pixels of the document. 
                                This property was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              ids               Style sheet IDs array. This property was added 
                                in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              images            Array of Image objects. This property was added 
                                in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              lastModified      Date when the document was last modified.
+------------+----------------+------------------------------------------+
              layers            Array of Layer objects. This property was added 
                                in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              linkColor         Color of links.
+------------+----------------+-----------------------------------------+
              links             Array of Link objects.
+------------+----------------+------------------------------------------+
              plugins           Array of embedded objects. This property was 
                                added in JavaScript 1.1.
+------------+----------------+------------------------------------------+ referrer          URL of the document to which the current document 
                                was linked.
+------------+----------------+------------------------------------------+
              tags              Style sheet tag array. This property was added 
                                in JavaScript 1.2.
+------------+----------------+------------------------------------------+
              title             Title of the document.
+------------+----------------+------------------------------------------+
              URL               URL of the current document. This property was 
                                added in JavaScript 1.1.
+------------+----------------+------------------------------------------+
              vlinkColor        Color of visited links.
+------------+----------------+------------------------------------------+
              width             Specifies width in pixels of the document. This 
                                property was added in JavaScript 1.2.
+------------+----------------+------------------------------------------+
*/
Related examples in the same category
1.  Output HTML in JavaScript
2.  Display info in a new page
3.  Recursively reverse all nodes beneath Node n, and reverse Text nodes
4.  Reverse the order of the children of Node (document)
5.  Open a new document and add some text
6.  Get element by name: getElementsByName()
7.  Get a specified element using getElementById()
8.  Title of a document
9.  Referrer of a document (URL of the document)
10.  Hide Email Address
11.  Convert space to URL encode
12.  document last Modified Property in Another Format
13.  Checking document referrer
14.  Make button (control) visible or invisible
15.  Opening a New URL
16.   HTML Page with Immediate Script Statements
17.  Using document.write() on the Current Window
18.  Using document.write() on Another Window








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.