How to Put a JavaScript Into an HTML Page

Document is an object in JavaScript. There are a bunch of objects in JavaScript, like forms, windows, etc. Each object has functions (or actions) associated with it. The document object has a function called “write” that writes to the document. ................
................