Javascript is a programming language which is very often used in the Web (with HTML). HTML documents (web-pages) usually cannot change, unless you use something like Javascript. This is what Javascript excels at doing!
Requirements
For this tutorial, you will need:
A document editor. Some good ones are: notepad, notepad++, vim
A web-browser. Chrome and Firefox are preferred.
Part 1
Start off by making 2 brand new documents, named index1.html and javascript1.js. These are HTML and Javascript documents! Now, change them so that the look exactly like these:
With these two simple documents, that is everything you need to run your first Javascript code! Open the file index1.html in a web-browser and you will see your first example of Javascript. If you have trouble opening the file, find it on your computer (ie: My Documents -> index1.html), right click, and select "Open with.. Chrome or Firefox.
Part 2
Follow along using the rest of these documents. Each pair is the next step in the JavaScript program.
Introduction
Javascript is a programming language which is very often used in the Web (with HTML). HTML documents (web-pages) usually cannot change, unless you use something like Javascript. This is what Javascript excels at doing!Requirements
For this tutorial, you will need:Part 1
Start off by making 2 brand new documents, named index1.html and javascript1.js. These are HTML and Javascript documents! Now, change them so that the look exactly like these:With these two simple documents, that is everything you need to run your first Javascript code! Open the file index1.html in a web-browser and you will see your first example of Javascript. If you have trouble opening the file, find it on your computer (ie: My Documents -> index1.html), right click, and select "Open with.. Chrome or Firefox.
Part 2
Follow along using the rest of these documents. Each pair is the next step in the JavaScript program.