prsona
Get started
Low: fix when convenient

JavaScript errors on your website: when a script stops a form or a button

Last reviewed

Most script errors are harmless, and a few cost you leads.

A JavaScript error is a script on your page that failed while it ran, recorded in the browser's console where visitors never look. Many come from third-party add-ons and change nothing a visitor can see. Some stop the part of the page that script was running: a form that will not send, a menu that will not open, a booking or quote widget that never loads. The ones worth fixing first are on the pages and features that bring you customers.

Why JavaScript errors costs you customers

A broken script does not show the visitor an error message. The button simply does nothing, or the form sits there after they press send, so they assume the business is not taking enquiries and leave. Because the rest of the page looks fine, nobody reports it, and the only clue is fewer leads from that page.

What usually causes JavaScript errors

  • A plugin or theme update that conflicts with another script on the page
  • A third-party add-on, such as chat, reviews or tracking, that changed or was switched off
  • A script loaded twice, or loaded before the code it depends on
  • An ad blocker or privacy setting in the visitor's browser blocking a script the page relies on
  • An old browser that does not support newer code

How to check for JavaScript errors yourself

  1. Open the page in Chrome or Edge, press F12 (or Cmd+Option+J on a Mac) and choose the Console tab. Errors are shown in red.
  2. Reload the page with the console open, then use the form, menu or widget you care about and watch whether a new error appears as you do.
  3. Note the file name at the right of each error. A name from a plugin, theme or outside service tells your developer where to start.
  4. Try the same page in a private window with browser extensions off, to rule out an ad blocker as the cause.

How to fix JavaScript errors

  1. Start with errors that appear when a visitor uses a form, button or booking feature. Those are the ones costing leads.
  2. Your developer matches each error to its plugin, theme or service, and updates, reconfigures or removes the one at fault.
  3. If an error began after an update, rolling back that one update is often the quickest way to confirm the cause.
  4. For third-party add-ons, check the account with that service is active and the code installed is their current version.
  5. Leave harmless errors from tracking or advertising scripts for a later tidy-up, but note them so new ones stand out.

How Prsona catches JavaScript errors

Prsona loads your pages in a real browser on each scan and records the JavaScript errors they throw, quoting examples so your developer can find them. It is raised as an observation rather than a fault, because many script errors are harmless, and it is the guide to read when a form, button or widget on the same page is also behaving oddly.

Prsona looks for JavaScript errors as part of broken page detection and contact form monitoring.

See which script errors sit on the pages that bring you customers.

Questions about JavaScript errors

Do JavaScript errors affect SEO?

Usually not directly. Search engines care about the content they can read and how the page behaves for visitors. An error matters for search when it stops the main content appearing, or makes the page slow or unusable, which hurts both rankings and the people trying to use it.

Can a JavaScript error stop my contact form from sending?

Yes. Many forms rely on a script to check the fields and send the message. If that script fails, pressing send can do nothing at all, with no message to the visitor. Testing the form yourself with the browser console open shows whether an error appears at that point.

Sources