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

Q1596 How can I accept the name of a page to load in a fraemset from the URL?

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

Try:

<html>

<head>
<script language="JavaScript"><!--
function loadFrame() {
   var passed = "" + location.search;
   if (passed != "" && passed !="undefined") top.middelFrame.location = passed.substring(1);
}
//--></script>
</head>

<frameset rows="20.*,20" onLoad="top.loadFrame()">
<frame name="topFrame" src="menu.html">
<frame name="middleFrame" src="javascript:' '">
<frame name="bottomFrame" src="menu.html">
</frameset>

</html>

©2018 Martin Webb