document.bgColor : Browser Info « Window Browser « JavaScript DHTML






document.bgColor

 
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor="beige" text= "black" link="darkblue" vlink="honeydew">
<SCRIPT language="JavaScript">
document.write("<H1>"+document.title+"</H1>");

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+"<BR>");

document.write("Last Modified: "+document.lastModified+"<BR>");
document.write("URL: "+document.URL);
</SCRIPT>

</BODY>

</HTML>

   
  








Related examples in the same category

1.Detects the browser, its version and the operating system of the client
2.Detects the language used by the client's browser
3.Indentify your browser
4.Navigator:detect the client's browser
5.More details about the client's browser
6.All details about the client's browser
7.Browser infomation
8.Accessing the Properties of the navigator Object
9.Writing Different Text to a Page Based on the Browser
10. Navigator Object
11.Using Navigator Properties
12.Functions to Examine Browsers
13.Get Browser version
14.Methods and Properties of the Frame Object
15.The Methods and Properties of the navigator Object
16.Verify browser language
17.Is cookie Enabled
18.document.alinkColor
19.document.lastModified
20.document.title
21.document.fgColor
22.document.linkColor
23.document.vlinkColor