Situation: using authoring tool (RoboHelp) to build online information (help) system. Information displays in multi-framed browser window. Frames include nav bars across top, nav pane (TOC, Index, Glossary) at left, content pane right. Content pane occasionally is split into two additional frames.
Currently using this Javascript function, which prints the content pane, including both frames if there are two:
window.parent.frames[1].frames[1].focus();window.print();
Challenge: Modify Javascript to print only the last frame in the content pane, no matter how many frames in browser. Complication: don’t know and can’t get frame names.
Possible solution: Javascript bit to:
1) count frames (using something like window.length?)
2) print the last frame
Problem: I’m a writer, not a developer. Can understand, modify Javascript–but create from scratch?–no way. I need help.
Thanks in advance.
[code=php]window.parent.frames[1].frames[1].focus();window.print();
[FONT=courier new]