JavaScript Guide
JavaScript - Client-Side Scripting
JavaScript is a scripting language for the web!
JavaScript is used by millions of web pages to enhance design, validate forms, detect browsers, create cookies, and more.
JavaScript is easy to learn.
JavaScript Examples
My First Web Page
This is a paragraph.
What is JavaScript?
JavaScript is designed to add interactivity to HTML pages.
JavaScript is a scripting language (a lightweight programming language).
JavaScript consists of executable lines of computer code.
JavaScript is usually embedded directly into HTML pages.
JavaScript is an interpreted language (meaning that code is executed without being precompiled).
Everyone can use JavaScript without purchasing a license.
Client-Side Scripting
JavaScript "dictates" browser behavior. This is known as client-side scripting (or browser scripting).
Server-side scripting "dictates" server behavior (see our ASP/PHP tutorials).
What Can JavaScript Do?
JavaScript provides HTML designers with a programming tool
JavaScript can insert dynamic text into HTML pages
JavaScript can respond to events
JavaScript can read and write HTML elements
JavaScript can be used to validate data
JavaScript can be used to detect the visitor's browser
JavaScript can be used to create cookies
What is the HTML DOM?
The HTML DOM defines standard methods for accessing and manipulating HTML documents.
The DOM presents an HTML document as a tree structure.
HTML DOM Tree Example
How to Learn JavaScript?
Visit the Complete JavaScript Tutorial