Thrown if reading a variable that does not exist.
Platform Support
| IE | Mozilla | Netscape | Opera | Chrome | Safari | 5.0+ | 1.0+ | 6.0+ | no | no | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
ReferenceError Constructor([String message]) : ReferenceError
Creates a new instance of ReferenceError.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | no | no | no | |||||
ReferenceError([String message]) : ReferenceErrorCreates a new instance of ReferenceError. Parameters
Returns
|
||||||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari |
|---|---|---|---|---|---|---|---|
|
An error message associated with the ReferenceError.
|
No Details | 5.0+ | 1.0+ | 6.0+ | no | no | no |
|
|
|||||||
|
Specifies the type of exception.
|
No Details | 5.0+ | 1.0+ | 6.0+ | no | no | no |
|
|
|||||||
References
Error|Error.message|Error.name
Availability
JavaScript 1.5|JScript 5.5|ECMAScript v3