Saturday, September 1, 2012

JavaScript Tutorial


JavaScript Tutorial

                       JavaScript is THE scripting language of the Web.

JavaScript is used in billions of Web pages to add functionality, validate forms, communicate with the server, and much more.

JavaScript Introduction

JavaScript is the most popular scripting language in the world. It is the standard language used in web pages, but it is also widely used by desktop apps, mobile phone apps, and internet servers.

What You Should Already Know

Before you continue you should have a basic understanding of the following:
  • HTML and CSS

What is JavaScript?

  • JavaScript is a scripting language
  • JavaScript was designed to add interactivity to HTML pages

What is a Scripting Language?

A scripting language is a lightweight programming language that supports the writing of scripts.

What can JavaScript do?

JavaScript gives HTML designers a programming toolHTML editors are normally not programmers, but JavaScript is a language with a very simple syntax. Almost anyone can put small "snippets" of JavaScript code into HTML pages.

JavaScript can manipulate HTMLJavaScript can both read and change the content of HTML elements.

JavaScript can manipulate CSSJavaScript can both read and change the style of HTML elements.

JavaScript can validate dataJavaScript can be used to validate data, like validating forms input.

JavaScript can store dataJavaScript can be used to store and retrieve information on the visitor's computer.

JavaScript can react to eventsJavaScript can be set to execute when something happens, like when a user clicks on an HTML element.


JavaScript vs. Java

JavaScript and Java are two completely different languages, in both concept and design.
Java (developed by Sun Microsystems) is a complex programming language in the same category as C and C++.


No comments:

Post a Comment