Writing a client-side script in Design view

Writing a client-side script in Design view

You can write a JavaScript or VBScript for your page without leaving Design view.

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

To insert a client-side script in Design view:

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

    The Script dialog box appears.

  3. Complete the dialog box and click OK.

    For more information, see Setting the Script dialog box options.

Related topics

  • Linking to an external script file
  • 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