Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.