Where and when to save scripts

By default, the scripts you write in the integrated Script editor are stored in the HTML document. They are saved when you save the document. If you use the standalone Web Script editor to write a script, you can incorporate the script into a document by pointing to the file or copying the script into the document.

When you save a script in an external file from the integrated Script editor, the editor inserts an SRC attribute to point to the file. When you edit the script, the editor gets the script from the file and saves it again when you save the document.