|
Q1596 How can I accept the name of a page to load in a fraemset from the URL?
irt.org | Knowledge Base | JavaScript | Frame | Q1596 [ previous next ]
Q1596 How can I accept the name of a page to load in a fraemset from the URL?
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>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.