L'oggetto Document appartiene agli oggetti dell'XML DOM e racchiude tutti gli oggetti presenti in un documento HTML.
open([mineType])
win2=window.open("") //open blank window and write to it
win2.document.open() //open document stream
win2.document.write("'''Some text'''")
win2.document.close()
write("string")
document.write("This page\'s URL is "+document.URL)