It is used for creating interactive websites. It is mainly used for:
- Displaying drop-down menus
- Displaying date and time
- Client-side validation
- Displaying pop-up windows and dialogue boxes ( like an alert dialogue box, confirm dialogue box and prompt dialogue box.)
- Displaying clocks, etc.