Frameset page: frameset3.html
<html>
<head>
<title>Dynamic Frameset Test</title>
</head>
<script>
<!-- Hide script from old browsers
linkURL = "page1.html"
if (parent.document.URL) {
callingURL = parent.document.URL;
if (callingURL.indexOf('?') != -1) {
linkURL = callingURL.substring(callingURL.indexOf('?')+1,
callingURL.length);
}
}
document.writeln('<frameset cols="130,*">');
document.writeln('<frame src="left3.html" name="left"
scrolling=auto>');
document.writeln('<frame src="' + linkURL + '" name="content"
scrolling=auto>');
document.writeln('</frameset>');
// End hiding script from old browsers -->
</script>
<noscript>
<!-- If Javascript is disabled, display the default frameset -->
<frameset cols="130,*">
<frame src="left3.html" name="left" scrolling=auto>
<frame src="page1.html" name="content" scrolling=auto>
</frameset>
</noscript>
<!-- User doesn't have a frames-compatible browser -->
<noframes>
<body bgcolor=white>
<h2>Please download a frames-capable browser</h2>
</body>
</noframes>
</html>