ABSTRACT

This chapter introduces the concepts of web scripting and the JavaScript language. Readers will learn how to insert JavaScript commands directly into the HTML document, and how the script executes when they view the page in their browser. It works with a simple script, edits it, and tests it in browser while learning the basic tasks involved in creating and using JavaScript scripts. Essentially all scripting languages are programming languages. Web scripts provide the same type of instructions to web browsers. JavaScript scripts can range from a single line to an entire application. There are two main types of scripts. Client-side scripts are first downloaded on the client-side, then interpreted and executed by the browser. A stylesheet describes the standard style characteristics of a document or part of a document, including page layout, font styles, and size of text elements such as headings and bodies.