JavaScript is the programming language of the Web! In our JavaScript tutorial
you
will learn how to write JavaScripts and insert them into your HTML documents, and how to make your pages more dynamic and interactive.
Start Learning JavaScript!
JavaScript Examples
Learn by 100 examples! With our editor, you can edit the source code, and click on a
test button to view the result. Try-It-Yourself!
At W3Schools you will find a complete JavaScript reference about objects and
their properties and methods. JavaScript Reference.
Table of Contents
Introduction
This chapter is a short
introduction to JavaScript. It explains what JavaScript is, and how it works. It also explains what you can
do with JavaScript.
How To
This chapter will teach
you how to put a JavaScript into an HTML document, and how to handle older browsers.
Where To
This chapter will teach
you where to put a JavaScript into an HTML document, and how to use external
scripts.
Variables
This chapter will teach
you how to write and use variables in JavaScript.
Operators
This chapter will teach
you how to use the operators in JavaScript.
Functions
This chapter will teach
you how to write and call functions in JavaScript.
Conditional statements
This chapter will teach
you how to use the if..else and the switch statement in JavaScript.
Looping statements
This chapter will teach
you how to loop in JavaScript.
Guidelines
You should read these guidelines before you start scripting.
String object
This chapter explains the String
object, with working examples.
JavaScript Objects
String object
This chapter contains a description of the String object, a list of its
properties and methods, and examples on how to use the object.
Array object
This chapter contains a description of the Array object, a list of its methods,
and examples on how to use the object.
Date object
This chapter contains a description of the Date object, a list of its methods,
and examples on how to use the object.
Math object
This chapter contains a description of the Math object, a list of its properties
and methods, and examples on how to use the object.
Window object
This chapter contains examples on how to use the Window object.
Frame object
This chapter contains examples on how to use the Frame object.
Form object
This chapter contains examples on how to use the Form object.
Browser object
This chapter contains examples on how to use the Browser object.
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.