Linking to an external script file

Linking to an external script file

You can create a link in your document to an external script file without leaving Design view.

Before starting, select View > Visual Aids > Invisible Elements to ensure that script markers will appear on the page.

To link to an external script file:

  1. Place the insertion point where you want the script.
  2. Select Insert > Script Objects > Script.

    The Script dialog box appears.

  3. Click OK without typing anything in the Content box.
  4. Select the script marker in Design view of the Document window.
  5. In the Property inspector, click the folder icon and browse to and select the external script file, or type the filename in the Source box.

Related topics

  • Writing a client-side script in Design view
  • Editing a script in Design view


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly