In this article I’ll explain Javascript Scripting. If you haven’t read my previous article on Javascript Scripting you should read it first. It provides a brief overview on the capabilities of Javascript. Here is the location of the code you’ll be working with, to see what you’ll learn. Here I’ll run you through some Javascript code and explain the following:
- How to embed Javascript Scripts in HTML files
- How to hide Javascript code from browsers that don’t support it
- How to create Functions
- How to create Variables
- Explain what the Document Object Model is and how to use it
- Define Nodes and how to manipulate them
- Explain how to use For Loops
- Explain how to use While Loops
- Explain how If and Else statements work
- Show how to use the Switch Statement
- Teach what Event Handlers are and how to use them
- How to edit your page content on the fly