Javascript TUTORIAL

This tutorial is intended for beginners who understand HTML and basic webpage designs and who want to enhance the "interactive features" of webpage using Javascript.

If you are a mathematical kind of person and want jump coding, skip this introduction and go directly to next page. Otherwise go ahead and read on.

INTRODUCTION



Javascript is an easy-to-use programming language that can be embedded within your web pages. Assume that you want to create a web page that calculates and displays the Body Mass Index (BMI) for a person of given height and weight. A simple HTML will not be able to do that. Javascript will come handy in such situation. Javascript can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more.

What is JavaScript?

* JavaScript adds interactivity to HTML pages
* JavaScript is a lightweight scripting programming language
* A JavaScript is usually embedded directly into HTML pages
* JavaScript is an interpreted language. The scripts execute without preliminary compilation.
* No License is required to use Javascript

Drifference between Java and Javascript

Java and Javascript have almost nothing in common except for the name. Java was developed by Sun Microsystems.Javascript was invented by Brendan Eich at Netscape (with Navigator 2.0), and has appeared in all Netscape and Microsoft browsers since 1996. Java is a powerful and much more complex programming language - in the same category as C and C++.

Java is coded in a similar fashion to C++, with separate header and class files, compiled together prior to execution. It is powerful enough to write major applications and insert them in a web page as a special object called an "applet." Java has been generating a lot of excitment because of its unique ability to run the same program on IBM, Mac, and Unix computers. Java is not considered an easy-to-use language for non-programmers.

Javascript is much simpler to use than Java.