Output HTML in JavaScript : Document « Development « JavaScript DHTML

Output HTML in JavaScript


<SCRIPT language="JavaScript">


document.write("The background color is "+document.bgColor+"<BR>");
document.write("The text color is "+document.fgColor+"<BR>");
document.write("The link color is "+document.linkColor+"<BR>");
document.write("The visited link color is "+document.vlinkColor+"<BR>"); 
document.write("The active link color is "+document.alinkColor);

document.write("Last Modified: "+document.lastModified);
document.write("URL: "+document.URL);





Related examples in the same category

with Javascript
2.Display info in a new page
3.Recursively reverse all nodes beneath Node n, and reverse Text nodes
4.Reverse the order of the children of Node (document)
5.Open a new document and add some text
6.Get element by name: getElementsByName()
7.Get a specified element using getElementById()
8.Title of a document
9.Referrer of a document (URL of the document)
10.Hide Email Address
11.Convert space to URL encode
12.document last Modified Property in Another Format
13.Checking document referrer
14.Make button (control) visible or invisible
15.Opening a New URL
16. HTML Page with Immediate Script Statements
17.Using document.write() on the Current Window
18.Using document.write() on Another Window
19.Methods and Properties of the Document Object