name
ReferenceError
instance propertyS2C Home
« Globals « ReferenceError « name
Description
Contains a name for an error.
Syntax
Signature | Description |
---|---|
aReferenceError.name | Returns a reference to the function that created the prototype. |
Parameters
None.
Examples
The code below displays the name
property of the ReferenceError
object.
var anError = new ReferenceError();
anError.name = 'referenceErrorName';
alert('ReferenceError Name is: ' + anError.name);
Related Tutorials
JavaScript Advanced Tutorials - Lesson 2 - Errors