Introduction to JavaScript

What is JavaScript?

JavaScript is a scripting language widely used in client web page (browser) development. It is used to add dynamic functions to HTML web pages, such as responding to various user requests. Operation etc.

JavaScript is a scripting language based on Object and Event Driven with security properties. In most cases, it is executed by a web browser.

JavaScript is a registered trademark of Sun Corporation of the United States. The latest version of Javascript is currently version 1.9, which follows the ECMA-262 standard (ECMAScript) of Ecma International (formerly the European Computer Manufacturers Association). This version is still Continuously developing.


JavaScript Features

Scripting Language

JavaScript is a scripting language that uses small program segments to implement programming. Like other scripting languages, JavaScript is an interpreted language that is translated line by line when executed by the browser.

Object-based language

JavaScript is an object-based language and can also be regarded as object-oriented. This means that it can use objects it has already created. Therefore, much functionality can come from the interaction of methods of objects in a scripting environment with scripts.

Simplicity

Writing JavaScript is very simple, you don’t need to install a specific development environment, you only need one JavaScript scripts can be written using simple Notepad. It has basic program syntax and language structures as well as weak data types, which are easy to learn and use.

Security

JavaScript is a security language. It does not allow access to the local hard disk and cannot save data. After entering the server, modification and deletion of network documents are not allowed. Information browsing or dynamic interaction can only be achieved through the browser, thus effectively preventing data loss.

Dynamics

JavaScript is dynamic, it can respond directly to user input without going through the Web service program . It responds to users in an event-driven manner. The so-called event-driven refers to the action generated by performing a certain operation on the web page, which is called an "event": for example, pressing the mouse, moving the window, selecting the menu, etc. can be regarded as events. When an event occurs, it may cause a corresponding JavaScript event response.

Cross-platform

JavaScript is executed by the web browser and has nothing to do with the operating system environment, as long as the browser can run Computers and browsers that support JavaScript will execute correctly.


Write directly to HTML output

   

...

Reaction to events
##

    php.cn 

Change HTML content

    php中文网(php.cn) 

内容。

Change HTML image

    php中文网(php.cn) 

点击灯泡查看效果

Change HTML style

    php中文网(php.cn) 

改变 HTML 的样式。

Verify input

    php中文网(php.cn)  
Email:


Continuing Learning
||
php中文网(php.cn)
Email:
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!