A with Statement Example.

 

<SCRIPT LANGUAGE = JavaScript>

with(document){
document.writeln("The document foreground color is " + fgColor + ".")
document.writeln("The document foreground color is " + bgColor + ".")
}

</SCRIPT>

Javascript has a "document" object. -- Stands for this html page (which ever one you are currently looking at)

this document has a foreground color that they named "fgColor"

and a background color that they named "bgColor"