Creating JavaScript files

You can add dynamic JavaScriptâ„¢ content to Web pages, such as Web-based forms.
To create a new JavaScript file, complete the following steps:
  1. From the Web perspective, select File > New > Other > JavaScript File to launch the New JavaScript File wizard.
  2. 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.

  3. Type a file name into the appropriate field.
  4. Click Finish to create the file in the project that you have selected. The file will open in the JavaScript editor.
Related concepts
Page Designer
Quick Edit view
JavaScript editor
Related tasks
Editing JavaScript files
Previewing JavaScript code

Feedback