javascript error listener
Posted
by John Doe
on Stack Overflow
See other posts from Stack Overflow
or by John Doe
Published on 2010-04-16T14:25:59Z
Indexed on
2010/04/16
14:33 UTC
Read the original article
Hit count: 215
hi all
i try using window.attachEvent (or addEventListener) to capture js errors my callback function gets only one event parameter
my question is: how do i get line number and source file of the error from this event?
the alternative usage window.onerror=callback; works but an event listener has other benefits thus im giving it a try
© Stack Overflow or respective owner