doc.close(); Not too bad. We can write whatever markup we want to the document such as HTML, links, CSS, or even JavaScript. Printing the Browser content With a reference to the document, we can do whatever we want with it. That would include methods in the DOM such as execCommand. ...