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

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Java
Java Tutorial
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » Development » Document 
Methods and Properties of the Document Object

  Methods     
captureEvents()   Captures events to be handled by the document. 
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. 
getSelection()    Returns the selected text.
handleEvent()     Invokes the handler for the specified event. 
open()            Opens output stream to document.
releaseEvents()   Releases events captured by the document. 
routeEvent()      Routes captured events to other objects. 
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. 
anchors           Array of Anchor objects.
applets           Array of Applet objects.
bgcolor           Background color of the document.
classes           Style sheet classes array.
cookie            Cookie associated with the document.
domain            Domain of the document.
embeds            Array of embedded objects.
fgcolor           Color of text in the document.
forms             Array of Form objects.
formName          Specifies Form instance accessed by using the value of the name attribute in the form tag.
height            Specifies height in pixels of the document. 
ids               Style sheet IDs array.
images            Array of Image objects.
lastModified      Date when the document was last modified.
layers            Array of Layer objects.
linkColor         Color of links.
links             Array of Link objects.
plugins           Array of embedded objects.
referrer          URL of the document to which the current document was linked.
tags              Style sheet tag array.
title             Title of the document.
URL               URL of the current document.
vlinkColor        Color of visited links.
width             Specifies width in pixels of the document.
           
       
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 - 07 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.