Skip to main content

Uses of Scripting Languages

Typical uses of scripting languages including JavaScript include:

Image or text rollovers: If the user rolls the mouse over a graphic or hypertext then a text or graphic box will appear:

Creating a pop-up window to display information in a separate window from the Web page that triggered it. This is useful if the user requires to perform a simple calculation or consult a calendar for inputting dates. This is achieved by embedding ActiveX controls or Java applets into the script.

Pop-ip calendar

Validating the content of fields: When filling in forms, each field, especially required fields denoted by an asterisk, are validated for correct input. If the field is left blank or incorrect information entered then a user message will be generated and you may not continue.

Interactive enquiry form.

Next: Methods used to Implement Client-side Scripts