javascript - Check whether window.onerror is availale or not -
In my JavaScript logging framework, I'm holding the unrestricted exception via window. Inter-handler
How do I check whether window.errorerror is available or not? This window will not recognize some of the browsers. Terror
You can check with:
if (typeof Window.errorerror === 'undefined') {// You can not use the window. Terror} other {// you can}} See MDN Docs for Headstart, how you can work on cross browser, how to override it or make some type of polyphil Are:
Comments
Post a Comment