Netscape 6, Part VI: Object-Oriented DOCJSLIB 1.2

Creating a Class on the Fly

The function createTheProperSubClass() creates on the fly the proper browser-dependent object. The function actually defines a class with one property, className, and one method, getTheProperSubClass. The property className depends on the browser type: