大象传媒

Client-side scripting using JavaScript

JavaScript is the main client-side scripting language that can be used to create, delete and manipulate HTML elements.

Extensive JavaScript code is often contained within its own file and linked to a webpage in the same way that a CSS file can be linked.

Some common tasks that can be performed using JavaScript relate to how the webpage responds to action taken by the user using their mouse or touchscreen.

These are called mouse events.