JavaScript Tutorial - From Getting Started to Wen (7) JavaScript Window and Input Output JavaScript is an object-based scripting language, then its input and output is done by objects. The relevant input can be done by the window (Window) object, and the output can be implemented by the method of the document object. First, the window and input and output, please see the following example: