Document-object properties and Common object methods
Object Properties
Document.title//Set document title equivalent to the title tag of HTML
Document.bgcolor//Set page background color
Document.fgcolor//Set foreground (text color)
Document.linkcolor//non-clicked link color
Document.alinkcolor//Activate link (focus on this link) color
Document.vlinkcolor//Clicked link color
Document. URL//Set URL property to open another page in the same window
Document.filecreateddate//File creation date, read-only property
Document.filemodifieddate//File modification date, read-only property
Document.filesize//File size, read-only property
Document.cookie//Set up and read out cookies
Document.charset//Set character sets Simplified Chinese: gb2312
———————————————————————
Common Object Methods
document.write ()//write content to page dynamically
Document.createelement (tag)//Create an HTML tag object
document.getElementById (ID)//Get the object with the specified ID value
Document.getelementsbyname (name)//Gets the object with the specified Name value
Document.getelementsbyclassname ("ClassName")//Gets the object (array) of the specified class value
document.getElementsByTagName ("TagName")//Get the specified Tag object
Document.body.appendChild (Otag)
———————————————————————
Document-object properties and Common object methods