Javascript Reference
Categories: Error

javascript Error lineNumber

@March 15, 2008, 1:22 a.m.
lineNumberFirefox/Netscape/NN 6 IE n/a ECMA n/a  

Read/Write  

Specifies the number of the line in the source code where the current script error occurred. This information appears in the JavaScript Console window for each reported error.

 
Example
 
var errorLine = myError.lineNumber;
 
Value

Number in string format.


Powered by Linode.