Javascript Reference
Categories: Error

javascript Error prototype

@March 15, 2008, 1:22 a.m.
prototypeFirefox/Netscape/NN 6 IE 5(Win) ECMA 3  

Read/Write  

This is a property of the static Error object. Use the prototype property to assign new properties and methods to future instances of a Error object created in the current document. See the Array.prototype property description for examples.

 
Example
 
Error.prototype.custom = true;
 
Value

Any data, including function references.


Powered by Linode.