Microsoft®
JScript this Statement |
Language Reference Version 1
|
Refers to the current object.
this.property
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: 2024/10/7 17:27,
98.80.143.34:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 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://www.massmind.org/techref/inet/iis/jscript/htm/js768.htm"> this Statement</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to www.massmind.org! |
.