this [FF, IE 3]
A term that refers to the object in which it appears. Example:
<input type = "checkbox" name = "riddle_me" onClick = "alert(this.name)">
Here, this
refers to the checkbox named riddle_me
because that's where this
appears. The alert box will have the text riddle_me
inside.
Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.