JavaScript Tutorial

previous next


JavaScript is the scripting language of the Web. It is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more.

JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, Opera.

Table of Contents

Introduction to JavaScript
  JavaScript is the scripting language of the Web. It is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, Opera.

 

JavaScript How To ...
  The HTML <script> tag is used to insert a JavaScript into an HTML page.

 

JavaScript Where To ...
  JavaScripts in the body section will be executed WHILE the page loads while JavaScripts in the head section will be executed when CALLED.

 

JavaScript Variables
  A variable is a "container" for information you want to store.

 

JavaScript If...Else Statements
  Conditional statements in JavaScript are used to perform different actions based on different conditions.

 

JavaScript Switch Statement
  Conditional statements in JavaScript are used to perform different actions based on different conditions.

 

JavaScript Operators
  JavaScript contains arithmetic, assignment, comparison, and logical operators. It also contains a conditional operator that assigns a value to a variable based on some condition.

 

JavaScript Popup Boxes
  In JavaScript we can create three kinds of popup boxes: Alert box, Confirm box, and Prompt box.

 

JavaScript Functions
  A function is a reusable code-block that will be executed by an event, or when the function is called.

 

JavaScript For Loop
  The for loop is used when you know in advance how many times the script should run.

 

JavaScript While Loop
  The while loop is used when you want the loop to execute and continue executing while the specified condition is true.

 

JavaScript Break and Continue
  There are two special statements that can be used inside loops: break and continue.

 

JavaScript For ... In Statement
  The for ... in statement is used to loop (iterate) through the elements of an array or through the properties of an object.

 

JavaScript Events
  Events are actions that can be detected by JavaScript.

 

JavaScript Try ... Catch Statement
  The try ... catch statement allows you to test a block of code for errors.

 

JavaScript Throw Statement
 

The throw statement allows you to create an exception.

 

JavaScript Special Characters
  In JavaScript you can add special characters to a text string by using the backslash sign.

 

JavaScript Guidelines
  Some other important things to know when scripting with JavaScript.

 

JavaScript Objects Introduction
  JavaScript is an Object Oriented Programming (OOP) language.

 

JavaScript String Object
  The String object is used to manipulate a stored piece of text.

 

JavaScript Date Object
  The Date object is used to work with dates and times.

 

JavaScript Array Object
  The Array object is used to store a set of values in a single variable name.

 

JavaScript Math Object
  The Math object allows you to perform common mathematical tasks.

 

JavaScript Browser Detection
  The JavaScript Navigator object contains information about the visitor's browser.

 

JavaScript Form Validation
  JavaScript can be used to validate input data in HTML forms before sending off the content to a server.

 

JavaScript Create Your Own Objects
  Objects are useful to organize information.

 


previous next