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.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/jscript/js768.htm, 2KB, , updated: 1997/9/30 02:45, local time: 2024/12/28 09:35,
3.133.141.201: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/language/jscript/js768.htm"> this Statement</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.