Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Frame | Q698 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.