I need to have 3 frames on a page out of which only one must be displayed at any time.
Something like this:

One page with 3 frames - only the first is displayed initially but on click of a button on frame 1, display just frame 2 and click of another button, display frame3

Essentially all frames need to be on a single page (so that I dont have to use window.open or window.navigate and at run time remove current frame and display another .

Also in many of the replies there are references to window.frames[0].location , but this gives an error while running. Is there something wrong here?

Thanks for any help.