JavaScript is Netscape's cross-platform, object-based scripting language
for client and server applications. There are two types of JavaScript:
Navigator JavaScript, also called client-side JavaScript
LiveWire JavaScript, also called server-side JavaScript
A browser interprets JavaScript statements embedded in an HTML page.
When the browser requests such a page, the server sends the full content
of the document, including HTML and JavaScript statements, over the network
to the client. The browser then displays the HTML and executes the JavaScript,
producing the results that the user sees.
Client-side JavaScript statements embedded in an HTML page can respond
to user events such as mouse-clicks, form input, and page navigation.
For example, we can write a JavaScript function to verify that users
enter valid information into a form requesting a telephone number or
zip code. Without any network transmission, the HTML page with embedded
JavaScript can check the entered data and alert the user with a dialog
box if the input is invalid.
By utilising JavaScript and other similar technologies, Compsoft can
ensure that the data in all systems it builds is suitably validated before
it is submitted, ensuring a high degree of accuracy – vital for
any computerised system.