See Also
Description
Refers to the current object.
Syntax
this.property
Remarks
The this keyword is typically used in object
constructors to refer to the current
object. In the following example, this refers to the newly created
Car object, and assigns values to three properties:
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.
This video explains it well:
[フレーム]
[フレーム]
See also:
file: /Techref/inet/iis/jscript/htm/js768.htm,
2KB, , updated: 2019年10月8日 17:57, local time: 2025年9月5日 19:17,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/techref/inet/iis/jscript/htm/js768.htm"> this Statement</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.