The Document Object in VBScript


Document Object Properties

PropertyPurpose
aLinkColorThe document active link color
anchorsRefers to the Anchor object contained by the Document object
bgColorDocument background color
cookieDocument cookie
fgColorDocument foreground color
formsForm object contained by the Document object
lastModifiedDate of document's last modification
linkColorDocument link color
linksRefers to the Link object contained in the Document object
locationDocument URL information
referrerURL of previous document
titleDocument title
vLinkColorVisited link color

Document Object Methods

MethodPurpose
clearClears a document stream and writes any output to the window
closeCloses a document stream and writes any output to the window (does not close a window)
openOpens a document stream such that subsequent writes to the current document occur simultaneously
writeWrites a string to a document
writeLnWrites a string and a newline to a document