search
HomeWeb Front-endJS TutorialWhat is JavaScript? How to use JavaScript?

What is JavaScript? How to use JavaScript?

Nov 09, 2017 pm 02:05 PM
javascriptjsusage

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:

<script language="Javascript">
<!--
document.writeln("这是Javascript!采用直接插入的方法!");
//-Javascript结束-->
</script>

In this example, we can see a new tags: <script>...</script>, and

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software