Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Microsoft® JScript® constructor Property |
Language Reference Version 2 |
Specifies the function that creates an object.
object.constructorThe required object argument is the name of an object or function.
The constructor property is a member of the prototype of every object that has a prototype. This includes all intrinsic JavaScript objects except the Global and Math objects. The constructor property contains a reference to the function that constructs instances of that particular object. For example:orx = new String("Hi"); if (x.constructor == String) // Do something (the condition will be true).function MyFunc { // Body of function. } y = new MyFunc; if (y.constructor == MyFunc) // Do something (the condition will be true).
Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |