Thrown if reading a variable that does not exist.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 5.0+ | 1.0+ | 6.0+ | no | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of ReferenceError. | 5.0+ | 1.0+ | 6.0+ | no | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
An error message associated with the ReferenceError. | 5.0+ | 1.0+ | 6.0+ | no | no |
Specifies the type of exception. | 5.0+ | 1.0+ | 6.0+ | no | no |
References
Error | Error.message | Error.name
Availability
JavaScript 1.5 | JScript 5.5 | ECMAScript v3
Constructor Detail
ReferenceError ReferenceError([String message])
Creates a new instance of ReferenceError.
| String | message | An error message associated with the ReferenceError. (optional) |
