home / experts / javascript / column77 |
|
Creating a Class on the FlyThe function
We then define the method
Notice that the ultimate impact of createTheProperSubClass() function is to generate a string for a new object. For IE5, it should be:
For NS6, it should be:
We'll show you later in this column how to assign a variable name to this new object. Next: How to write a browser-independent superclass |
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: February 12, 2001
Revised: February 12, 2001
URL: http://www.webreference.com/js/column77/6.html