Why use a frameset?
Your first reaction may be to wonder how frames have anything to do with what we’ve been talking about so far in this article. Surprisingly, frames provide the most direct means of circumventing the problem we encountered at the end of the last section! Since any JavaScript variable associated with a Web page is destroyed when the page is no longer loaded in the browser, any method that would allow us to make data persist even after the page is no longer loaded would have to provide for someplace else for that data to be stored. Each frame in a frameset contains, as far as the browser is concerned, a separate document. The frameset itself is also considered a document by the browser, and as such can have JavaScript variables associated with it. In a frames-based site, the same frameset document is likely to remain loaded all the time, while the documents loaded into the frames (which I will refer to as framed documents) will be constantly changing. Storing data in any of the framed doc