The this Keyword : this : Object Oriented JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Object Oriented » this »

 

The this Keyword







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);
};







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Object Oriented
» this