topical media & game development

talk show tell print

basic-javascript-07-frameset-page.htm / htm



  <html>
  <head>
  <title>The Unchanging frameset page</title>
  <script Language="JavaScript" type="text/javascript">
  var pagesVisited = new Array();
  function returnPagesVisited()
  {
  var returnValue = "So far you have visited the following pages\n";
  var pageVisitedIndex;
  var numberOfPagesVisited = pagesVisited.length;
  for (pageVisitedIndex = 0; pageVisitedIndex < numberOfPagesVisited;
  pageVisitedIndex++)
     {
  returnValue = returnValue + pagesVisited[pageVisitedIndex] + "\n";
     }
  return returnValue;
  }
  function addPage(fileName)
  {
  var fileNameStart = fileName.lastIndexOf("/") + 1;
  fileName = fileName.substr (fileNameStart);
  pagesVisited[pagesVisited.length] = fileName;
  return true;
  }
  </script>
  </head>
  <frameset cols="50%,*">
  <frame name=fraLeft src="page_a.htm">
  <frame name=fraRight src="page_b.htm">
  </frameset>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.