Refers to the current object.
Arguments
- property
-
Required. The identifier of a property of the current object.
Remarks
Example
In the following example, this refers to the newly created Car object, and assigns values to three properties:
В | Copy Code |
---|
function Car(color, make, model){
this.color = color;
this.make = make;
this.model = model;
} |
For client versions of JScript, this refers to the window object if used outside of the context of any other object.
Requirements
See Also