What JavaScript can do

Source: Internet
Author: User
Tags regular expression

Introduction to JavaScript Features

JavaScript programs are used to detect activities and react to user actions, such as when the cursor passes over a link, which becomes a different color, a form of reaction to the user's actions. JavaScript programs provide navigation Help for Web sites, scrolling information, dialog boxes, dynamic images, shopping carts, and more. JavaScript programs allow you to control the appearance of Web pages and to evaluate the effectiveness of user input, which eliminates the burden of the server by interacting with the server. JavaScript programs can also detect whether a user's computer has some plug-ins installed, and can download the required plug-ins from the appropriate site when needed.

JavaScript provides string-handling functions and regular expression support, using them to check the validity of e-mail, network addresses, credit card numbers, cell phone numbers, and so on. JavaScript is an interpretive program that provides a set of basic language widget blocks, such as variables, data types, conditional statements, loop statements, functions, objects, and so on. Through these component blocks, can complete the mathematical computation, the operation date and time, the analysis string, the operation array and the object and so on. JavaScript can also write and read cookie values and dynamically create HTML pages based on specific cookie values.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/script/

Overall, the main functions of JavaScript are as follows:

Control the appearance and content of a document

Controlling the behavior of the browser

Interacting with users

Use cookies to read and write client state

Manipulating embedded Images

Of course, JavaScript is not omnipotent, it is limited to browser and HTML-related tasks, and in a restricted context, so JavaScript does not have independent languages (such as C + +, JAVA, VB) have some of the necessary features. JavaScript does not have the characteristics:

JavaScript does not have any image processing capabilities other than the ability to format and display HTML documents

Client JavaScript does not allow read and write files for security reasons

JavaScript does not support any network access features beyond the ability to allow browsers to download any URL-specific content.

JavaScript does not have any multithreading capabilities

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.