Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q698 How can I output half a page to one frame and the other half to another frame?

You are here: irt.org | FAQ | JavaScript | Frame | Q698 [ previous next ]

The only Client Side JavaScript solution that springs to mind is outputting the contents of each frame using JavaScript:

<SCRIPT LANGUAGE="JavaScript"><!--
function update() {
    window.top.document.open();
    window.top.document.writeln("Some content I want to write goes here");
    window.top.document.close();

    window.top.document.open();
    window.top.document.writeln("Some content I want to write goes here");
    window.top.document.close();
}
//--></SCRIPT>

<FRAMESET ROWS="50%,*" onLoad="update()">
<FRAME SRC="about:blank" NAME="top">
<FRAME SRC="about:blank" NAME="bottom">
</FRAMESET>

As you can see this is one page that contains half the output on one frame, and the other half in the other. This would get seriously complicated very quickly.

Feedback on 'Q698 How can I output half a page to one frame and the other half to another frame?'

©2018 Martin Webb