Chapter 5: Frames, Frames, and More Frames

Return to Chapter 5

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Sharing Functions between Frames

See it run: Sharing Functions between Frames

Script 5.12

This JavaScript allows you to share functions between multiple frames. The script is called from the frameset page, and it loads the pages into the frameset.

Images:

redBanner.gif
greenBanner.gif
blueBanner.gif