THE WORLD'S LARGEST WEB DEVELOPER SITE

JavaScript Tutorial




JavaScript is the programming language of HTML and the Web.

JavaScript is easy to learn.

This tutorial will teach you JavaScript from basic to advanced.



Examples in Eaxh Chapter

This tutorial will teach you JavaScript from basic to advanced.
With our online HTML editor, you can edit the HTML, and click on a button to view the result.

Example

<!DOCTYPE html>
<html>
<body>
<h1>A Web Page</h1>
<p id="demo">A Paragraph</p>
<button type="button"
onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "Paragraph changed.";
}
</script> </body> </html>

Click on the "Try it Yourself" button to see how it works.

Start learning HTML now!




HTML Examples

At the end of the HTML tutorial, you can find more than 200 examples.

With our online editor, you can edit and test each example yourself.

Go to HTML Examples!








JavaScript Quiz Test

Test your JavaScript skills at W3Schools!

Start JavaScript Quiz!




JavaScript References

W3Schools maintains a complete JavaScript reference, including all HTML and browser objects.

The reference contains examples for all properties and methods, and is continuously updated according to the latest web standards.

Complete JavaScript Reference



JavaScript Exam - Get Your Diploma!

w3schools

W3Schools' Online Certification

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

More than 10 000 certificates already issued!

TheHTML Certificatedocuments your knowledge of HTML

TheCSS Certificatedocuments your knowledge of advanced CSS.

TheJavaScript Certificatedocuments your knowledge of JavaScript and HTML DOM.

ThejQuery Certificatedocuments your knowledge of jQuery.

ThePHP Certificatedocuments your knowledge of PHP and SQL (MySQL).

TheXML Certificatedocuments your knowledge of XML, XML DOM and XSLT.

TheBooststrap Certificatedocuments your knowledge of the Bootstrap framework.

W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2018 by Refsnes Data. All Rights Reserved. Powered by W3.CSS.