JavaScript Tutorial

## JS Basic

JS HOME JS Introduction JS How To JS Output JS Statements JS Comments JS Variables JS Data Types JS Objects JS Functions JS Operators JS Comparisons JS Conditions JS Switch JS Loop For JS Loop While JS Breaks JS Errors JS Validation

## JS Advanced

JS Object JS Number JS String JS Date JS Array JS Boolean JS Math JS RegExp

## JS HTML DOM

DOM Intro DOM Methods DOM Document DOM Elements DOM HTML DOM CSS DOM Events DOM Navigation DOM Nodes DOM Nodelist

## JS Browser BOM

JS Window JS Screen JS Location JS History JS Navigator JS PopupAlert JS Timing JS Cookies

## JS Libraries

JS Libraries JS jQuery JS Prototype

## JS Examples

JS Basic Examples JS Objects Examples JS DOM Examples JS HTML Examples JS Browser Examples JS Quiz JS Certificate JS Summary

## JS References

Javascript Objects HTML DOM Objects

# JavaScript Tutorial

« W3Schools Home
Next Chapter »

JavaScript is the scripting language of the Web.

All modern HTML pages are using JavaScript.

This tutorial will teach you JavaScript from basic to advanced.

## Try it Yourself Examples in Every Chapter

In every chapter, you can edit examples online, and click on a button to view the result.

## Example

## My First JavaScript Example

This is a paragraph.

Try it yourself »

Use the "Try it yourself" examples !!!

Experiment with the code examples !!!

Learn a lot about JavaScript in a very short time !!!

## What You Should Already Know

This tutorial is about JavaScript and how it works with HTML and CSS.

Therefore, before you continue, you should have a basic understanding of the following:

- HTML and CSS

## JavaScript Examples

This tutorial contains hundreds of examples!

With "Try it yourself", you can edit the source code and click on a button to view the result.

- JavaScript Basic Examples
- JavaScript Objects Examples
- JavaScript HTML DOM Examples
- JavaScript HTML Objects Examples
- JavaScript Browser Objects Examples

## JavaScript Quiz Test

Test your JavaScript skills at W3Schools!

Start JavaScript Quiz!

## JavaScript References

At W3Schools you will find a complete reference of all JavaScript objects, all Browser objects, and all HTML DOM objects.

The references contain examples for every object, every property, and every method.

Complete JavaScript Reference

## JavaScript Exam - Get Your Diploma!

## W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

« W3Schools Home
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE