this

A keyword that you can use to refer to the current object. In general, in a method this refers to the calling object.

Syntax

this[.propertyName]

Examples

Suppose a function called validate validates an object's value property, given the object and the high and low values:

function validate(obj, lowval, hival) {
  if ((obj.value < lowval) || (obj.value > hival))
    Alert("Invalid Value!")
}