JavaScript Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback
 

INTRODUCTION to Javascript

Index of Javascript Tutorial



Introduction

How To
.Write
Html Tags
Alert

Variables

Types
String
Number
Boolean
Type Conversion

Operators Types

Operators
Arithmetic
Logical
Comparison
Assignment
Ternary
Precedence

Statements

If Statement
If Else
Switch Case
With Statement

Loops

For Statement
While Loop
Do While
Break
Continue

JavaScript Functions

Functions
Parameters
Return Value

Objects

Date
Math
Global

String Functions

length()
charAt()
indexOf()
lastIndexOf()
substring()
split()
toLowerCase()
toUpperCase()

Math Functions

Basic Functions
abs()
ceil()
floor()
log()
max()
min()
pow()
random()
round()

Trigonometric Methods

Methods
sin()
cos()
tan()
asin()
acos()
atan()

Math Object Constants

Math Constants

Arrays

Array Basic
Dynamic Array
External Array
Array Methods

Browser Objects

Hierarchy
Window Object
Document
History
Navigator

Window Objects

Properties
Methods or Functions
confirm()
prompt()
open()
close()
setTimout()
clearTimeout()

History Objects

back()
forward()
go()

Form Dom

DOM & Events
Button Object
Checkbox
Radio
Text Field
Text Area
Select Object
Form Object
Feedback

Introduction of JavaScript

Javascript is the client side scripting language, developed by netscape, used along with HTML to build an efficient web site / webpage.

In the beginning stages, web pages were developed only using html which are nothing but static pages. User interaction and dynamic changes are not possible with html. With the advent of scripting languages, the problem was solved. There are two types of script languages - server side and client side.

When a page is requested, the request is sent to the server and data is fetched and viewed in the browser.

  • If the dynamic changes in the webpage are caused in the client side (the browsers like mozilla / IE) it is called client side scripting language (E.g. - Javascript).
  • If the dynamic changes in the web page are caused in the server side (the server checks the request and based on the data it makes changes in the page before sending the data to the browser) it is called server side scripting language (E.g. - php).

Java script codes are embedded in HTML files. Whenever a browser requests for a webpage, the HTML file along with script is transferred to the browser. This tutorial will give you an introduction and help you learn java script.

JavaScript is used to create dynamic changes, validate forms, detect visitor details, create/use cookies, etc.. JavaScript works in all major browsers such as Internet Explorer, Mozilla, Firefox, Netscape, Opera, Safari and more.

Java and Javascript: Never confuse javascript with java. Java is an application development language developed by SUN Microsystems and has no link to javascript. Javascript was created long before java was developed. Javascript is many times denoted as java script.

This tutorial will help both beginners and advanced users to learn java script.


A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

Other Links

web hosting