I know one can add event listener for window.error.
However when working with Iframes, each iframe
has its own window element, and window.error
should be created for each and every iframe
.
Is it possible somehow to define error event handler in one location, where all errors will trigger this specific method?