You define the Class template (to use a Java lingo) with a function definition |
Then create an instance of the object with the new statement |
function Display(no) { |
this.displayno = no; // Label display instance |
this.pageframe = 'foil'; // Default for name of frame to put page in |
this.indexframe= 'list'; // Default for name of frame to be index in |
this.pagepointer = null; // Default URL for page to use |
this.indexpointer = null; // Default URL for index to use |
} |
cps616 = new Display(1); // create an object cps616 |
cps616.pagepointer = "../cps616over96/webfoilindex.html"; |
cps616.indexpointer = "../cps616over96/foillist.html"; |