JavaScript Editor Ajax toolkit     Ajax website 

Main Page

A value is assigned to this, a JScript keyword that refers to either:

A method is a JScript function that is invoked through an object. Inside a method, the this keyword is a reference to the object through which the method was invoked (which happens to be the object created by invoking the class constructor with the new operator).

Inside a method, you can use this to refer to the current object, but you cannot assign a new value to this.

To correct this error

  • Do not assign a value to this. To access a property or method of an instantiated object, use the dot operator (for example, circle.radius).


    You cannot name a user-created variable this; it is a JScript reserved word.

See Also


this Statement


Troubleshooting Your Scripts

Other Resources

JScript Reference

JavaScript Editor Ajax toolkit     Ajax website