Document object, properties associated with it
Property | Description | Example |
embeds | Property "embeds" is return an array containing all the plugins contained in the document. | Code To Get: var dd = document.embeds; alert(dd.length); Test |
fgColor | Property "fgColor" is used to set/get the foreground color attribute of body tag. | Code To Get: var dd = document.fgColor; Code To Set: document.fgColor = "fefaaa"; Test |
form | Property "form" is the object reference of a form object contained in the document. | |
forms | Property "forms" is used to get an array of all the form objects in the document page. | Code To Get: var dd = document.forms; var length1 = dd.length; Test |
image | Property "image" is the object reference of an image object contained in the document. | |
images | Property "images" is used to get an array of all the image objects in the document or web page. | Code To Get: var dd = document.images; var img = dd[0].width; Test |
link | Property "link" is the object reference of a link object contained in the document. | |
links | Property "links" is used to get an array of all the link objects in the document or web page. | Code To Get: var dd = document.links; var link1 = dd[0]; Test |