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 16:57, local time: 2024/11/22 21:14,
3.143.218.115:LOG IN
|
©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://ecomorder.com/Techref/inet/iis/jscript/htm/js768.htm"> this Statement</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.