Set Text of Frame

Set Text of Frame

The Set Text of Frame action allows you to dynamically set the text of a frame, replacing the content and formatting of a frame with the content you specify. The content can include any valid HTML code. Use this action to dynamically display information.

Although the Set Text of Frame action replaces the formatting of a frame, you can select Preserve Background Color to preserve the page background and text color attributes.

You can embed any valid JavaScript function call, property, global variable, or other expression in the text. To embed a JavaScript expression, place it inside braces ({}). To display a brace, precede it with a backslash (\{).

Example

The URL for this page is {window.location}, and today is {new Date()}.

To create a frameset:

  • Select Modify > Frameset > Split Frame Left, Right, Up, or Down.

    For more information, see Creating frames and framesets.

To use the Set Text of Frame action:

  1. Select an object and open the Behaviors panel.
  2. Click the Plus (+) button and select Set Text > Set Text of Frame from the Actions pop-up menu.
  3. In the Set Text of Frame dialog box, select the target frame from the Frame pop-up menu.
  4. Click the Get Current HTML button to copy the current contents of the target frame’s body section.
  5. Enter a message in the New HTML text box and click OK.
  6. Check that the default event is the one you want. If it isn’t, select another event from the pop-up menu.

    If you don’t see the events you want, 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
 
ASPTreeView.com
 
Evaluation has №ЩЅµУПexpired.
Info...