Glossary J JavaScript

JavaScript

JavaScript is the best web programming language for creating interactive browser effects on-the-fly. Combined with CSS, you can use JavaScript to create dazzling effects and enhance the interactivity of a web page or specific component.

An example of a simple JavaScript interaction is how a mobile menu works. To reveal navigation links on most mobile menus, you click on a menu icon which then reveals the full list of navigation links. The action of clicking the menu icon is captured by JavaScript, where it can then add or remove CSS classes on click and load the different styles attributes from those classes.