window.onerror = function(type, file, line){
if(type) {
console.log(type);
}
if(file) {
console.log(file);
}
if(line) {
console.log(line);
}
}
this code returns "Script error" when there is an error at some of the .js files. I need the type, file and line of the error. How can I get it? When window throws error this script works perfect but it is not the same when there is error in the .js file. I know that these things I can find on the console but imagine that I don t have one and i cannot install.