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>