Subj : Preventing 'new' To : netscape.public.mozilla.jseng From : Jamie Nordmeyer Date : Fri Mar 25 2005 02:22 pm How do you hide an object's constructor so that you can't 'new' that object? Essentially, I want to be able to create the object in my C++ code, but the Javascript user should NOT be able to. They should have to do the following: var objB = objA.CreateObjB(); .