Javascript - Is it possible to prototype window.onerror if the browser is webkit based?
- by JK
I know that webkit browsers do not support window.onerror. Would it be possible to create a prototype with the same arguments to mimic this if it is not present? eg
if (!window.onerror) {
// create a prototype to implement the missing function
}
I've only ever used javascript, I've never extended it, so I don't know what is required, and what constraints there are etc.