Home >Web Front-end >JS Tutorial >Encyclopedia of JavaScript development techniques - Chapter 1 Overview of JavaScript_Basic knowledge

Encyclopedia of JavaScript development techniques - Chapter 1 Overview of JavaScript_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 18:05:25881browse

1.1 slightly

1.2 version. Briefly

1.3 JavaScript and browser Briefly

1.4 Function of javascript

Excerpted from "3Cschool"

What can JavaScript do?

JavaScript provides a programming tool for HTML designers
HTML creators are often not programmers, but JavaScript is a scripting language with an extremely simple syntax! Almost everyone has the ability to put short snippets of code into their HTML pages.
JavaScript can put dynamic text into HTML pages
A JavaScript statement similar to this can put a variable text into HTML pages: document.write("

" name "

" )
JavaScript can respond to events
JavaScript can be set to be executed when an event occurs, such as when the page is loaded or when the user clicks on an HTML element.
JavaScript can read and write HTML elements
JavaScript can read and change the content of HTML elements.
javaScript can be used to validate data
JavaScript can be used to validate data before it is submitted to the server.
JavaScript can be used to detect the visitor's browser
JavaScript can be used to detect the visitor's browser and load the corresponding page for the browser based on the detected browser.
JavaScript can be used to create cookies
JavaScript can be used to store and retrieve information located on the visitor's computer.
1.5 Limitations of javascript

. It is a client-side script, so it must be run under the parser.

. Although dynamic effects can be achieved on web pages, they do not have any graphics processing capabilities.

. It does not include networking technology and cannot read data in the database.

. Most browsers do not allow cross-domain operations with JavaScript.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn