Contents Home Page Previous Page Next Page
IE4.x only

Collapsible Frame

This script is handy if you have a framed page with perhaps a menu in one of the frames. If a visitor with Internet Explorer 4.x double-clicks anywhere in that frame, it will shrink to 10 pixels wide, with the main frame resizing accordingly. A second double-click restores the frame. Visitors with other browsers will simply see the frameset as normal.

To grab this code, view the source of the frameset, collapsefrm.htm, and that of the left-hand frame, left.htm.