The this Keyword : this « Object Oriented « JavaScript Tutorial






The this keyword points to the object that is calling a particular method.

var myHourse = new Object;
myHourse.color = "red";
myHourse.showColor = function () {
    alert(this.color);
};








25.7.this
25.7.1.The this Keyword