What is Javascript?

JavaScript is a programming language that is used on or within websites and thus equipped with certain functions. JavaScript can be used, for example, to open pop-ups and check form data for completeness.

It is also possible to optimize page navigation through JavaScript, to change a called web page to the user's input with the mouse or keyboard, and to make menus user-friendly and dynamic.

What does JavaScript do?

JavaScripts have access to the browser windows and the HTML documents displayed in them. The most important task is to respond to user input in the document. As a result, JavaScripts can make changes in the HTML document that take place only in the browser. The document on the Internet server remains untouched. The changes can affect the content as well as the presentation of the document. This enables dynamic and interactive design, so that user input can be reacted to.

illustration frau betrachtet code auf einer website

Application areas of JavaScript

Animation:

JavaScript can be used to program animations such as scrolling texts and integrate them into WWW pages. The display window as well as dialog areas of the WWW browser are available for this.

Project Management:

With the help of JavaScript, so-called "gaps" in HTML can be circumvented. Within a frame set, for example, it is possible to update the contents of several frame windows simultaneously.

Dynamic WWW pages:

JavaScript can be used to make WWW pages behave dynamically, for example, by automatically changing foreground and background colors after the page is loaded.

Text generation:

Using JavaScript, HTML-formatted text can be generated at runtime, for example to display a current date or time to the user.

Applications:

With the help of JavaScript it is possible to program simple applications, for example, commercial calculators or simple games.

Application areas of JavaScript

JavaScript can be used to output text, change colors, and display windows that contain dialog boxes and menus. Typical applications created in JavaScript include:

  • Changing buttons as you move the mouse over them (rollover effect).

  • tickers in the status bar or form field

  • Pop-up windows with possible separate content

  • Dialog boxes, for example for entering data

  • Automatic browser recognition

  • Evaluation of forms

  • Programming of small games and dynamic navigation menus

  • Working and playing in a safe environment of the computer

Nowadays almost all websites contain JavaScript, of course also the Homepage-Baukasten.de. JavaScript runs as a script language in the browser. If JavaScript is deactivated in the browser, some functions of the Homepage-Baukasten are not available, for example the login does not work anymore.

The tasks are very diverse. Ultimately, the goals of JavaScript are to improve the capabilities of web pages and to create dynamic documents. Web pages are thus made functional for specific purposes.

Translated with www.DeepL.com/Translator (free version)


Ready to start your own website?