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

Q488 How can I pass the contents to be loaded into a "generic" frameset definition?

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

Use a link similar to the following:

<a href="frame.htm?bpage&cpage">Products</a>

And then in frame.htm:

<script language="JavaScript"><!--
var input = location.search.substring(1);
var ampersand = input.indexOf('&');
document.write('<frameset cols="33%,33%,*">');
document.write('<frame src="apage.htm">');
document.write('<frame src="' + input.substring(0,ampersand) + '.htm">');
document.write('<frame src="' + input.substring(ampersand+1) + '.htm">');
document.write('<\/frameset>');
//--></script>

Feedback on 'Q488 How can I pass the contents to be loaded into a "generic" frameset definition?'

©2018 Martin Webb