Using Javascript to Open an HTML File within the Parent Frameset
By including some new files in your Author-it book you can allow users to open any topic directly, along with all related frames.
Note: This functionality uses Javascript, so will only work with Javascript enabled browsers.
We've included the files you'll need in one small zip file which can be downloaded from the Author-it website.
To use Javascript to Open an HTML File within the Parent Frameset:
- Copy the files body_template.htm and open_parent.js into your ..\Templates\Plain HTML folder.
- Open the Media object(s) that are used by the topics in your book (usually Normal Section and Chapter Section). Set the Use this HTML template instead of settings below to reference body_template.htm. Set the Specify any additional files required to open_parent.js.
For example:

- Then either:
- To use Open Parent Page with ALL books:
Copy the new html_frameset.htm file into your ..\Templates\Plain HTML folder.
- To use Open Parent Page with SOME books:
Copy the new html_frameset.htm file to a different folder, or rename the file and copy it into the above folder. Amend your Book template(s) to reference the new html_frameset.htm file (on the HTML tab, set the Frameset template field).
- To use Open Parent Page with ONE book:
Copy the new html_frameset.htm file to a different folder, or rename the file and copy it into the above folder. Amend your Book object to reference the new html_frameset.htm file (on the HTML tab, set the Frameset template field).
For example:

Now you can link to the individual page (for example: path/directory/123.htm), and the file opens within the frameset...
|