Is there a way to "re-initialize" JavaScript after an error occurred?

We are currently using the following code to track javascript errors on our website:

window.onerror = function(message) {

The log-function in the code above displays the error message within the console for developers but not for regular users. We are thinking about displaying some kind of information for regular users and then to reload the page after the user confirms the message.
It would however be better if we could figure out a way to make sure that javascript continues to work even after an error has occurred.
So we are wondering if there is a way to "re-initialize" javascript to start over after an error has occurred. Any help would be appreciated. Thanks

169 thoughts on “Is there a way to "re-initialize" JavaScript after an error occurred?”

  1. Pingback: herbal viagra
  2. Pingback: buy generic viagra
  3. Pingback: cheap viagra
  4. Pingback: otc viagra
  5. Pingback: viagra price
  6. Pingback: buy viagra japan
  7. Pingback: canadian cialis
  8. Pingback: viagra pills
  9. Pingback: discount viagra
  10. Pingback: viagra cialis
  11. Pingback: sildenafilo
  12. Pingback: snorting viagra
  13. Pingback: viagra women
  14. Pingback: online viagra
  15. Pingback: natural viagra
  16. Pingback: sildenafil
  17. Pingback: sildenafil tablets
  18. Pingback: female viagra pill
  19. Pingback: sildenafil pills
  20. Pingback: female viagra
  21. Pingback: generic sildenafil
  22. Pingback: viagra online

Leave a Comment