<class home>  <Jscript>   <back   next>

Changing Text in a Frame

You can set text in a frame with behaviors instead of loading a new page.

advantages:
1. It is faster to change text content this way in a frame then by loading in a new page.
2. You can change frame content on different handlers then just clicking, for ex. onMouseOver


Changing Text in a Frame

1. Create and save a frameset with pages.

2. Name all your frames

3. In the Behaviors panel, select a browser (3.0 and later).

4. In the Document window, select an object (a, body, img, select)

5. In the Behaviors panel, add the action Set Text> Set Text of Frame.

6. In the dialog box, select the frame name.

7. In the dialog box, either type in or paste in the frame content to be put in (in html).
ex.
<center>
Here is the text
</center>

8. Click o.k.

9. In the Behaviors panel, select the event that you want to trigger the changing of the text (ex. onLoad, OnMouseOver)

*note: this may break in Netscape 6. Test in a later version.