Change Property

Change Property

Use the Change Property action to change the value of one of an object’s properties (for example, the background color of a layer or the action of a form). The properties you can change are determined by the browser; many more properties can be changed by this behavior in Internet Explorer 4.0 than in Internet Explorer 3.0 or Netscape Navigator 3.0 or 4.0. For example, you can set the background color of a layer dynamically.

To use the Change Property action:

  1. Select an object and open the Behaviors panel.
  2. Click the Plus (+) button and select Change Property from the Actions pop-up menu.
  3. From the Type of Object pop-up menu, select the type of object whose property you want to change.

    The Named Object pop-up menu now lists all the named objects of the type you chose.

  4. Select an object from the Named Object pop-up menu.
  5. Select a property from the Property pop-up menu, or enter the name of the property in the text box.

    To see the properties that can be changed in each browser, select different browsers or browser versions from the browser pop-up menu. If you are typing a property name, be sure to use the exact JavaScript name of the property (and remember that JavaScript properties are case sensitive).

  6. Enter the new value for the property in the New Value text box, and click OK.
  7. Check that the default event is the one you want. (When the event occurs, the action will execute and the property will change.)

    If it isn’t, select another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu.

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Inserting and Formatting Text
Adding Audio, Video, and Interactive Elements
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly