This page explains how to add a new JavaScript (.js) file to a project.
Introduction
You can create a new JavaScript file as part of an existing project, or you can create a standalone .js file and save it to your file system.
Instructions
To create a new .js file for a project:
- In the Project View, right-click your project, and select New > JavaScript file to open a New JavaScript File window.
- In the Container text box, either keep the current project (the default setting), or browse to a different project that you want to add the file to.
- In the File Name text box, type the name of your new file. Do not remove the ".js" extension from the end of the file name.
- Click the Finish button to create the file and add it to your project.
To create a new standalone .js file:
- From the File menu, select New > Untitled JavaScript File to open a new blank file in the JavaScript Editor.
- Click the Save button and save the file to a folder in your file system.