new Error("Inside doc ready error");
> > });
> > throw new Error("Outside doc ready error");
> >
>
> > Thanks.
>
> > -Adam Fisk
>
> Hmm, I'm not sure that binding the window error event has ever been
> supported by jQuery. I'd stick with using onerror.
>
> window.onerror = function(msg, uri, line) {
>
> }
's up?
$(document).ready( function() {
$(window).error(function(msg, url, line) {
alert("Got error");
});
throw new Error("Inside doc ready error");
});
throw new Error("Outside doc ready error");
Thanks.
-Adam Fisk
2 matches
Mail list logo