Document : Introduction « Document « JavaScript Tutorial

Home
JavaScript Tutorial
1.Language Basics
2.Operators
3.Statement
4.Development
5.Number Data Type
6.String
7.Function
8.Global
9.Math
10.Form
11.Array
12.Date
13.Dialogs
14.Document
15.Event
16.Location
17.Navigator
18.Screen
19.Window
20.History
21.HTML Tags
22.Style
23.DOM Node
24.Drag Drop
25.Object Oriented
26.Regular Expressions
27.XML
28.GUI Components
29.Dojo toolkit
30.jQuery
31.Animation
32.MS JScript
JavaScript Tutorial » Document » Introduction 
14.1.1.Document

The Document object represents a Web page that is displayed in a browser window, frame, or layer.

An instance is created with each document that is loaded by the browser.

Properties, Methods, and Event Handlers Associated with the Document Object are listed in the following table.

alinkColorColor of activated link
allArray of all HTML tags in the document
anchorsArray of Anchor objects
appletsArray of Applet objects
bgcolorBackground color of document
classesStyle sheet classes array
cookieCookie associated with document
domainDomain of document
embedsArray of embedded objects
fgcolorColor of text in document
formsArray of Form objects
idsStyle sheet IDs array
imagesArray of Image objects
lastModifiedDate when document was last modified
layersArray of Layer objects
linkColorColor of links
linksArray of Link objects
pluginsArray of embedded objects
referrerURL of document to which the current document was linked
tagsStyle sheet tag array
titleTitle of document
URLURL of current document
vlinkColorColor of visited links
captureEvents()Captures events to be handled by document
close()Closes output stream to document
getSelection()Returns the selected text
open()Opens output stream to document
releaseEvents()Releases events captured by document
routeEvent()Routes captured events to other objects
write()Appends text to document
writeln()Appends text and a newline character to document
onClickHandler for click events
onDblClickHandler for double-click events
onKeyDownHandler for KeyDown events
onKeyPressHandler for KeyPress events
onKeyUpHandler for KeyUp events
onLoadHandler that is used when Document has finished loading
onMouseDownHandler for MouseDown events
onMouseUpHandler for MouseUp events
onUnLoadHandler that is used when Document unloaded from window


14.1.Introduction
14.1.1.Document
14.1.2.Associative object arrays of document
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.