Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8017081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:44:04+00:00 2026-06-04T20:44:04+00:00

Our product inserts a script into client’s websites, kind of like a live chat

  • 0

Our product inserts a script into client’s websites, kind of like a live chat box.

Often, clients’ websites have buggy javascript that also stops our code (the browser stops execution when errors are encountered). Is there any way to make our code still execute even though there are errors in the console about things like undefined methods or variables?

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:44:06+00:00Added an answer on June 4, 2026 at 8:44 pm

    As others have said, continuing after an error might not be the best thing to do but you can try this:

    function ignoreerror()
    {
       return true
    }
    window.onerror=ignoreerror();
    

    More details here

    The onerror event fires whenever an JavaScript error occurs (depending
    on your browser configuration, you may see an error dialog pop up).
    The onerror event is attached to the window object, a rather unusual
    place to take refuge in, but for good reason. It is attached this way
    so it can monitor all JavaScript errors on a page, even those in the
    section of the page.

    Opera has a page with more details

    Browsers supporting window.onerror
    Chrome 13+
    Firefox 6.0+
    Internet Explorer 5.5+
    Opera 11.60+
    Safari 5.1+
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are revamping our product which gets highly customized for each client. Currently we
Our product deploys via msi at clients' sites, and is an add-on to a
We ran into a bug in our product caused by the fact that for
I would like to discuss scenario when the part of our product is not
Our product is game-like, and is very rich (~40M - 100M) in binary supporting
Our product currently spans a large number of technologies, including Java, PL/SQL, VB.Net and
Our product includes some custom hardware, that connects to a PC via USB. We've
Our product is using MS SQL Compact Edition on a Windows machine (laptop). It's
Our product, a desktop app, is composed of a ton of HTML5 and JavaScript
With our product we have a simple backup tool for the sql server database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.