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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -