Content deleted Content added
Andy Dingley (talk | contribs) m Reverted 1 edit by 182.68.215.62 (talk) identified as vandalism to last revision by 173.70.147.22. (TW) |
|||
Line 258:
* [[Data validation|Validating]] input values of a [[form (web)|web form]] to make sure that they are acceptable before being submitted to the server.
* Changing images as the mouse cursor [[Rollover (web design)|moves over them]]: This effect is often used to draw the user's attention to important links displayed as graphical elements.
* Transmitting information about the user's reading habits and browsing activities to various websites.
Because JavaScript code can run locally in a user's browser (rather than on a remote server), the browser can respond to user actions quickly, making an application more responsive. Furthermore, JavaScript code can detect user actions which HTML alone cannot, such as individual keystrokes. Applications such as [[Gmail]] take advantage of this: much of the user-interface logic is written in JavaScript, and JavaScript dispatches requests for information (such as the content of an e-mail message) to the server. The wider trend of [[Ajax (programming)|Ajax]] programming similarly exploits this strength.
|