Javascript Document Object

The Document object is the parent of html document. It is container for all HTML HEAD and BODY objects associated within the HTML tags of an HTML document.

Javascript Document Object Properties

Name Description
alinkColor Specifies the alink color.
anchors An array containing an entry for each anchor in the document.
applets An array containing an entry for each applet in the document.
bgColor Specifies the bgcolor color.
classes Creates a Style object that can specify the styles of HTML tags with a specific CLASS attribute.
cookie Specifies a cookie.
domain Specifies the domain name of the server that served a document.
embeds An array containing an entry for each plug-in in the document.
fgColor Specifies the fourground color.
formName A separate property for each named form in the document.
forms An array a containing an entry for each form in the document.
height The height of the document, in pixels.
images An array containing an entry for each image in the document.
lastModified The time when the page was last modified.
layers Array containing an entry for each layer within the document.
linkColor Specifies the link color.
links An array containing an entry for each link in the document.
plugins An array containing an entry for each plug-in in the document.
referrer A string that specifies the URL of the calling document.
tags Creates a Style object that can specify the styles of HTML tags.
title Specifies the contents of the title string.
URL Specifies the complete URL of a document.
vlinkColor Specifies the vlink color.
width The width of the document, in pixels.

Javascript Document Objects Methods

Name Description
captureEvents Sets the document to capture all events of the specified type.
close Closes an output stream and forces data to display.
contextual Uses contextual selection criteria to specify a Style object that can set the style of individual HTML tags.
getSelection Returns a string containing the text of the current selection.
handleEvent Invokes the handler for the specified event.
open Opens a stream to collect the output of write or writeln methods.
releaseEvents Sets the window or document to release captured events of the specified type, sending the event to objects further along the event hierarchy.
routeEvent Passes a captured event along the normal event hierarchy.
write Writes a string on the HTML page.
writeln Writes a string on the HTML page but add a carriage return to the end line.

See Also

Javascript Built in String Object
Javascript Built in Number Object
Javascript Built in Math Object
Javascript Built in Date Object
Javascript Built in Arrays Object
Javascript Built in Boolean Object
Javascript Built in RegExp Object
Javascript Built in JSON Object


 
SHARE THIS IF YOU LIKE!
submit to reddit
SUBSCRIBE FOR LATEST UPDATES
HAVE WE CONNECTED ON FACEBOOK?
TOP TUTORIALSTOP CODE EXAMPLESTOP LIVE DEMOLINKSSTAY CONNECTED
HTML Tutorial
HTML5 Tutorial
Bootstrap3 Tutorial
Javascript Tutorial
TypeScript Tutorial
AngularJS Tutorial
CSharp Tutorial
PHP Tutorial
Developer Tools
Javascript
AngularJS
Google MAP API V3
ASP.NET
Javascript
AngularJS
Google MAP API V3
Contact Us
Advertise with Us
Privacy Policy
Disclaimer
Stay connected. We actually like you. If you want to get up to the minute updates, then connect with us on your fav below.
 
Twitter   Linkedin   Facebook   Google+    RSS   Pinterest
 
Protected by Copyscape Original Content Checker
 
 
Copyright ©2017 www.techstrikers.com Unauthorized reproduction/replication of any part of this site is prohibited.