in javascript get the callstack that lead to error
The problem is not getting the callstack in general, which can be done as described here: http://eriwen.com/javascript/js-stack-trace/ but rather in accessing the callstack that triggered the event, from the handler of the event. In particular I'm interested in logging the callstack from the window error event window.onerror = function(msg, url, line) { //callstack // would be nice to have. //log callstack or whatever. (note this can be done w/ ajax and service, and is not the question at hand. } but I do know how to log the error. (I use jquery's .ajax , and a service) Will browsers make this