next up previous
Next: The Window Object Up: The Document Object Previous: The Document Object

Some Common document Methods/Properties

write, writeln
: HTML pages can be created live using JavaScript. This is done by using the write or writeln methods of the document object. E.g.:
document.write("<body>");
document.writeln("<h1>A test</h1>");

writeln causes a newline to be output with the output.

bgcolor, fgcolor
:

anchors
:

links
:

forms
:
layers
:
close()
:

next up previous
Next: The Window Object Up: The Document Object Previous: The Document Object
Dave Marshall
9/28/2001