Home > Web Front-end > JS Tutorial > What is JavaScript? How to use JavaScript?

What is JavaScript? How to use JavaScript?

黄舟
Release: 2017-11-09 14:05:35
Original
1841 people have browsed it

What is JavaScript? How to use JavaScript? For beginners, the first step is to understand these. So today our php Chinese website will introduce to you what JavaScript is? And the usage of JavaScript~


## 1. What is javascript?

##JavaScript is a client-side browser-based, object-oriented, ## developed by Netscape. #Event

Driven web scripting language. JavaScript is a scripting language developed from Netscape's LiveScript to improve compatibility with Java. JavaScript uses HTML pages as its interface.

JavaScript is a literal scripting language that is a dynamically typed, weakly typed, prototype-based language with built-in support for types. Its interpreter is called the JavaScript engine, which is part of the browser and is widely used in client-side scripting languages. It was first used on HTML (an application under Standard Universal Markup Language) web pages to add dynamic functions to HTML web pages. .

1. What are the characteristics of JavaScript

##JavaScript makes web pages more interactive. JavaScript simplifies regularly repeated HTML segments, reducing download times. JavaScript can respond to user operations in a timely manner and perform instant checks on submitted forms without wasting time on CGI verification. The features of JavaScript are endless, as long as you get creative.

2. What software should be used to develop JavaScript

A JavaScript program is actually a document, a text file. It is embedded into the HTML document. Therefore, any software that can write HTML documents can be used to develop JavaScript. Here I recommend that you use the Microsoft Script Editor that comes with FrontPage 2000 (in FrontPage menu | Tools | Macros | Microsoft Script Editor). It is a program developer like Visual Basic / C++ that can give brief prompts for the statements being entered. With FrontPage 2000, the workload is greatly reduced.

2. Usage of Javascript on web pages

##There are two ways to add Javascript to a web page:

1. Directly add HTML document

this Is the most commonly used method, most web pages containing Javascript use this method, such as:

In this example, we can see a new tags: <script>...</script>, and
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template