How to set and run javascript constructor
<p>Is it possible to create a constructor and have it run the code inside it, similar to languages like C# and Java? The code below is kind of what I am getting at.</p>

<p>For example</p>

<pre><code>function Test() 
{
       Test.constructor = function ()
       {
             /* Run code inside here when created */
       }
}


   var test = new Test();
</code></pre>
