Home  >  Article  >  Web Front-end  >  How to call javascript in DW

How to call javascript in DW

PHPz
PHPzOriginal
2023-04-19 14:14:003276browse

DW (Dreamweaver) is a widely used web development tool, and the use of JavaScript is often involved in the web development process. The following will introduce in detail how to call JavaScript in DW.

1. Create a JavaScript file in DW

First, create a new file in DW, select the "New" option in the "File" menu, select the "JavaScript" file type, and then Name and save this file.

2. Insert JavaScript code into DW

  1. Insert code directly

Copy and paste the JavaScript code into the newly created JavaScript file. You can also write the code directly in the code window of DW.

  1. Use DW's code prompt function

When creating a JavaScript file, DW will automatically write some basic code, including html, head, title and other tags. Enter the "