The Document Object
The open() and close() Methods
close1
Close2
redirect odkazem
Click "Open" to open a document in a new window, write some text to it and close it:
redirect pres script