background preloader

JavaScript

Facebook Twitter

JavaScript Kit- Your comprehensive JavaScript, DHTML, CSS, and Ajax stop. Mrdoob/three.js - GitHub. JavaScript 101, Beginner's Guide to Learning Block / Inline JavaScript. JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user actions and changes on the pageManipulating the web page’s contents and behaviourCommunicating with the user directly You can do just about anything you want with a web page, using JavaScript. In this introductory tutorial and the series to follow, I’ll introduce the JavaScript language and how to write it, through a series of practical worked examples. Example 1: Hello World! “Hello World!” Is traditionally the first thing you learn to do with any new language.

What we want to do When the user clicks a button, show the message, “Hello World!”. Step 1: Create a button Our web page needs a button to click: Let’s explain the various bits of the HTML: Try clicking the button… Did anything happen? This is exactly right, because we haven’t told the page that anything should happen when the button is clicked. Making something happen with inline JavaScript hello.js. Moo.fx - size does matter. Docs - /Intro.