28. How to detect crash of a web page?
A very interesting question.
onbeforeunload could be used to let us know right before a page is unloaded.
So how could we know that a web page crashed because of unexpected reasons?