• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. The Online Test > index.html—The Frameset

2.3. index.html—The Frameset

This application has three files: index.html, administer.html, and questions.js. Since index.html is the frameset, let's start there. Example 2.1 leads the way.

Example 2.1. The index.html Source Code

     1  <HTML>
     2  <HEAD>
     3  <TITLE>JavaScript On-line Test</TITLE>
     4  <SCRIPT LANGUAGE="JavaScript1.1">
     5  <!--
     6  var dummy1 = '<HTML><BODY BGCOLOR=WHITE></BODY></HTML>';
     7  var dummy2 = '<HTML><BODY BGCOLOR=WHITE><FONT FACE=Arial>' + 
     8    'Strap in Bucko: This ain\'t no JavaScript vacation...</BODY></HTML>';
     9  //-->
    10  </SCRIPT>
    11  </HEAD>
    12  <FRAMESET ROWS="90,*" FRAMEBORDER=0 BORDER=0>
    13    <FRAMESET COLS="250,*">
    14      <FRAME SRC="administer.html" SCROLLING=NO>
    15      <FRAME SRC="javascript: self.dummy1">
    16    </FRAMESET>
    17    <FRAME NAME="questions" SRC="javascript: self.dummy2">
    18  </FRAMESET>
    19  </HTML>

					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint