Latest web development tutorials

JavaScript Guide

JavaScript - Client Script

JavaScript is a scripting language belonging to the network!

JavaScript is millions of web pages to improve the design, validate forms, detect browsers, create cookies, and many more applications.

Learn simple JavaScript

JavaScript Examples

My First Web Page

This is a paragraph.

try it"
Click the "Try" button to view the online instance.

What is JavaScript?

  • JavaScript was designed to add interactivity to HTML pages behavior.
  • JavaScript is a scripting language (scripting language is a lightweight programming language).
  • JavaScript by the number of lines executable computer code.
  • JavaScript is usually embedded directly into HTML pages.
  • JavaScript is an interpreted language (that is, not precompiled code execution).
  • All of them can be used without purchasing a license JavaScript.

Client Script

JavaScript "develop" browser behavior. This is called client-side scripting (or browser script).

Server-side script is "to develop" behavior (see the site of the ASP / PHP tutorial) server.

JavaScript What can be done?

  • JavaScript provides a programming tool for the HTML designer
    HTML creators often not programmers, but JavaScript is a kind only has a very simple syntax scripting language! Almost everyone has the ability to short piece of code into their HTML pages of them.
  • JavaScript can put dynamic text HTML page <br> like this piece of JavaScript statements may be some variable text into an HTML page: document.write ( "<h1>" + name + "</ h1>" )
  • JavaScript can respond to events <br> JavaScript can be set when an event occurs will be executed, for example, the page has finished loading or when a user clicks on an HTML element.
  • JavaScript can read and write HTML elements
    JavaScript can read and change the content of the HTML element.
  • JavaScript can be used to verify the data before the data <br> be submitted to the server, JavaScript can be used to verify the data.
  • JavaScript can be used to detect the visitor's browser
    JavaScript can be used to detect the visitor's browser, and according to the detected browser for the browser to load the appropriate page.
  • JavaScript can be used to create cookies
    JavaScript can be used to store and retrieve located in the visitor's computer information.

What is the HTML DOM?

HTML DOM defines a standard way for accessing and manipulating HTML documents.

DOM expressing HTML document as a tree structure.

HTML DOM Tree instance


How to learn JavaScript?

Access to the complete JavaScript Tutorial

Access the full HTML DOM tutorial

Access to the complete JavaScript and HTML DOM Reference