It's the menu-frame that is split into two parts, one for the menu and one for the code. That is actually all we need to do to have the frameset correct. You can use this setup if you want to. If you want to keep this setup you can go on to the second part, setting options . Now we'll take our already existing frameset and make sure it's created by JavaScript.
Lets look at how the frameset is created.
A browser running JavaScript will then read the web-page down to where this frameset is, find out that it should use the script, write the frameset to the document, and then it'll find a frameset in the document and show it to the user. It's not all that difficult in practice either. First we'll put JavaScript-statements around the whole frameset making it be written to the document. In other words we're telling the browser that this frameset we have here should be written to the document. One thing that's neat with JavaScript is the possibility of identifying the browser and then acting accordingly.