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/12/23 17:55,
18.224.43.98: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://sxlist.com/Techref/language/asp/js/214.htm"> Microsoft® JScript Language Reference </A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.