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

6.5. frames.js


Practical use

Forced frame loading


Version requirement

JavaScript 1.1


Functions

keepIn(), keepOut()

This source file contains only two functions. One keeps your documents in a particular frameset. The other keeps your documents out of them. frames.js requires multiple HTML pages for its examples. For example, try to load ch06\frameset.html in your browser. This file is a frameset with two frames. One of the frames has file frames.html as the source. frames.html utilizes frames.js to ensure that frames.html is always loaded in the top window. That's why loading frameset.html gives you the results shown in Figure 6.10 and Figure 6.11 (the browser loaded frames.html ).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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