Websites and development

What Is JavaScript?

JavaScript is a programming language widely used to add behaviour to websites. It can respond to input, update page content and communicate with services. It also runs outside browsers in suitable software environments.

Definition and further reading: MDN. Sources checked 7 November 2026.

Miniature business people illustrate javascript through adding behaviour to a glossary search, with translucent explanatory annotations.

Adding behaviour to a glossary search

JavaScript can respond to a visitor’s input without reloading the whole page.

AI-generated illustration of a fictional business.

Read the infographic as text

JavaScript can respond to a visitor’s input without reloading the whole page.

  • Reader types “DNS”: The page receives input from the search field.
  • JavaScript: Checks the available terms and updates the visible list.
  • Matching entries: The reader sees the relevant definition links.

JavaScript is a language, not a hosting service. It can also run outside browsers in suitable environments.

Simplified explanation based on this entry’s sources and further reading.

Why would JavaScript matter to a business?

Search filters, menus and interactive forms may depend on JavaScript. Their usefulness depends on whether they work reliably for visitors, including people using keyboards or different devices.

An interaction should help someone complete a task, not become an unexplained obstacle. When commissioning a feature, describe the customer action it supports and how success will be checked. A working demonstration should include realistic input and an unsuccessful attempt, so the team can see whether visitors receive useful feedback when something goes wrong.

A practical JavaScript example

Illustrative example: a glossary uses JavaScript to filter visible terms as someone types. Ordinary links still let readers browse letter pages when that filtering feature is unavailable.

The team tries a familiar abbreviation, a misspelling and a term that is not in the glossary. It checks that the result message is understandable and that clearing the search restores the list. A keyboard user also tries the controls, helping confirm that the interactive feature is usable beyond the designer’s preferred device.

A useful distinction about JavaScript

JavaScript is different from Java. It is also only one part of a website: HTML provides structure and CSS controls presentation. An interactive interface does not by itself provide hosting or durable data storage.

A button reacting on screen is only part of the experience. If it is meant to send an enquiry, the business must also confirm that the message reaches the right destination. Separating visible interaction from the work behind it helps prevent a convincing interface from being mistaken for a complete, dependable business process.

A useful first question about JavaScript

Which essential customer actions rely on scripts, and what happens if a script fails to load or returns an error?

List the menu, search, booking and enquiry features your customers rely on. Ask the maintainer to explain what each one does when it cannot complete its task. Visitors should receive a useful next step rather than being left with a control that appears to do nothing.

Sources and further reading

  1. MDN: JavaScript

Want help applying this in your business?

Talk with Salient AI about your team’s needs and a practical next step.

Discuss your goals with Salient AI
← Back to J in the glossary