function Parent() { // somestuff } function Child() { Parent.call(this); } Child.prototype = new Parent(); Child.prototype.constructor = Child
Btw, you can also do classes with JavaScript: http://mootools.net/docs/core/Class/Class
JavaScript's prototype-based OOP is a superset of class-based OOP.