function F() { if(this instanceof F) { if(!F.prototype._self) { F.prototype._self = this; } return F.prototype._self; } } var a = new F; var b = new F; alert(a === b); alert(a instanceof F); alert(b instanceof F);