You
can add dynamic JavaScriptâ„¢ content to Web pages, such as Web-based
forms.
To create a new JavaScript file, complete the following
steps:
- From the Web perspective, select to launch the New JavaScript File wizard.
- Select the appropriate container for the file from the list of
project folders (and subfolders).
Make sure you choose a folder
in or under the WebContent folder of the Web project. This ensures that the
file is available for validation, publishing, and deployment.
- Type a file name into the appropriate field.
- Click Finish to create the file in the project
that you have selected. The file will open in the JavaScript editor.