1. Technology
Send to a Friend via Email

Javascript Tutorials

These Javascript tutorials can help you to start learning javascript and also to learn more about more advanced Javascript features.
  1. JavaScript By Example (283)
  2. Learn Modern JavaScript (65)
  3. Learn JavaScript (48)
  4. Tutorials by Email (6)
  5. Validating Forms
  6. Object Oriented JavaScript (22)
  7. Regular Expressions
  8. Animation
  9. Popup Windows
  10. Browser Object Model (13)
  11. Ajax
  12. Document Object Model
  13. Internet Explorer Specific (8)
  14. Improving Your JavaScript (20)
  15. Coding Tips (27)
  16. Google Maps (9)

Getting Started
Introduction to a series of tutorials on programming with Javascript

Free JavaScript Download
You don't have to pay for JavaScript, and you don't have to write it yourself either -- unless you want to. We'll help you understand your options for finding, downloading, and customizing free JavaScript code.

Why JavaScript
How should you use JavaScript so that it enhances your site.

Tools for Making JavaScript
What tools do you need to write JavaScript?

JavaScript Library or Code Yourself
Should you use a JavaScript library or write all the code yourself. Both ways have advantages and disadvantages.

How to Attach JavaScript into Your Page
JavaScript used to be added all over the place in web pages making a jumbled mess. By adding the JavaScript to your web page the right way you make both the HTML and JavaScript easier to maintain and make the JavaScript easier to reuse.

JavaScript MIME Type
The correct MIME type to use for JavaScript is not the one almost everyone uses and there is a reason for that.

Should You Do it With JavaScript
There are lots of things that can be done with JavaScript that are better done in some other way.

JavaScript Events
JavaScript can respond to events in your web page. There are a range of different types of events and also different ways to attach the JavaScript.

JavaScript Execution Order
What order does JavaScript run its code in?

Why Return A Value
Many web pages describe how to return a value from a function in JavaScript. This page explains why you should want to do so for most of your functions.

Methods and Side Effects
Attaching your functions to relevant objects means that they are less likely to need to have side effects as many updates will be fully contained within the object.

Web Page Creation
Just when should you add JavaScript when creating a web page?

Null and Undefined
Both null and undefined in JavaScript do not always behave as you might expect them to.

Built-in Functions: alert, confirm, prompt
JavaScript has three built in functions that allow you to instruct the browser to open one of three dialog boxes.

JavaScript For
'for' is a reserved word in JavaScript.

JavaScript and HTML
There are four ways to attach JavaScript into your HTML. Some ways are better than others.

JavaScript and HTML 5
One of the proposed additions to HTML 5 will make validating form fields in the browser slightly easier.

HTML and the DOM
You need to understand how the Document Object Model relates to your HTML source if you expect JavaScript to update the web page correctly.

Two DOMs
The XHTML Document Object Model is not the same as the HTML one.

JavaScript and XHTML
There are two completely different document object models that JavaScript can work with - one for HTML and one for XHTML. In this tutorial we consider some of the biggest differences in how they work

What Version of Javascript
Javascript like all programming languages has evolved over time. What this means is that new commands have been added to the language to support additional functionality and make it easier to use Javascript to provide various tasks. Here's how to determine which version your visitor's browser supports.

JavaScript Redirect
JavaScript can redirect your visiitors to a different page.

JavaScript Dates
javascript date, date method, format, add period, date difference, javascript

Five Most Common Coding Errors
The five worst pieces of code that people use with Javascript and which you ought to avoid.

Interpreted or Compiled
JavaScript runs as an interpreted language in the web browser. This impacts on how you need to write your code in ways you wouldn't need to worry about if it were compiled.

Dynamic JavaScript Forms Tutorial
A line by line walkthrough of a JavaScript object definition that performs a significant number of DOM updates.

When to Use Libraries
You need at least a decent knowledge of JavaScript before you can use a JavaScript library effectively.

Having something happen when your visitor clicks on something is probably one of the most common ways you will want to us JavaScript with your page. In this tutorial we look at the different ways of attaching the processing that we want to happen when they click starting from the worst but most common way people code it through to the berst way of coding it.

Referencing Form Fields
While you can reference form fields using the name attributes, it is more consistent for you to reference them from JavaScript using the id attribute as you do to reference all other parts of the HTML.

Feature Sensing
Right from day one Javascript has provided a simple way to check whether the version of Javascript currently being run supports a given object, method or function. The same (or similar code) can also be used to check if a property or variable exists.

Javascript and XHTML
XHTML treats embedded Javascript code slightly differently from the way HTML does. Here's how to get them working together properly.

Disable Javascript
To properly test your web pages you need to consider those people who have Javascript disabled. Here's how to turn off Javascript in your web browsers so that you can see your page as they will ses it.

Browser Detection
Many people using browsers other than Internet Explorer set their browser to report itself as IE because of all of the scripts that people use that don't recognise the other browsers as existing let alone being able to run everything IE can and more. This script works out what browser your visitor is really using regardless of what they have set it to report as.

How I Write JavaScript
There are a number of ways that you could write your JavaScript code. This is the approach I find easiest.

How Do You Write JavaScript?
Tell us how you approach writiing JavaScript.

Two Types of JavaScript
Some JavaScript code just makes your page look a little nicer and more interactive. Other JavaScript provides more essential functionality.

Regular Expressions
JavaScript supports regular expressions that are very similar to those supported by many other programming languages.

Modular Code Using JavaScript Functions
Reuse your existing JavaScript code in multiple places by converting it into functions.

Variables, Functions, Properties and Methods
While these four terms have distinct meanings in some languages, things are not as clear cut in JavaScript.

©2014 About.com. All rights reserved.