Microsoft® JScript this Statement |
| Language Reference |
|
Refers to the current object.
this.property
The this keyword is typically used in object constructors. It allows a way to refer to the current object. For example:
function Car( color, make, model ) { this.color = color; this.make = make; this.model = model; }In this example, this refers to the newly created Car object, and assigns values to three properties.For client versions of JScript, this refers to the window object if used outside of the context of any other object.
© 1996 by Microsoft Corporation.
file: /Techref/language/asp/js/214.htm, 1KB, , updated: 1996/11/22 10:11, local time: 2024/11/21 21:33,
18.223.206.84: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/asp/js/214.htm"> Microsoft® JScript Language Reference </A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.