Error.number : Error « MS JScript « JavaScript Tutorial






Syntax

errorobj.number
    errorobj.number = number;

The number property contains the error number of the error.

This method is read/write, so you can assign an error number using this property.

<html>
    <script language="JScript">
    <!--
    var myError = new Error(45,"A really big error!");

    document.write(myError.number);
    -->
    </script>
    </html>








32.8.Error
32.8.1.Error
32.8.2.Error.description
32.8.3.Error.number