Generally speaking, layout happens sequentially in the Navigator. That is, the Navigator starts from the top of the HTML file and works its way down, figuring out how to display output to the screen as it goes. So, it starts with the HEAD of an HTML document, then starts at the top of the BODY and works its way down. However, you could not use these objects before the form is defined. Likewise, once layout has occured, setting a property value does not affect its value or its appearance.
Key Navigator Objects Some of the most useful Navigator objects include document, form, and window.
These methods are the way that you display JavaScript expressions to the user. The only difference between write and writeln is that writeln adds a carriage return at the end of the line. However, since HTML ignores carriage returns, this will only affect preformatted text, such as that inside a PRE tag. The document object also has onLoad and onUnload event-handlers to perform functions when a user first loads a page and when a user exits a page. Using the form Object Navigator creates a form object for each form in a document.