JavaScript is an object-based scripting programming language, so its input and output are completed through objects. The input can be accomplished through the Window object, and the output can be accomplished through the methods of the document object.
where window.prompt() is a method of the window object. Its basic function is to display a message with "OK" and "OK" on the screen when the Web page is loaded. "Cancel" dialog box, allowing you to export data. document.writle is a method of the document object, and its basic function is to realize the output display of the Web page.
1. Window object
This object includes many useful properties, methods and event drivers. Programmers can use these objects to control various aspects of the browser window display, such as dialog boxes, frames, etc. The following points should be noted when using:
a. This object corresponds to the two identifiers of