Javascript: A Beginner's Guide

  • Authors:
  • John Pollock

  • Affiliations:
  • -

  • Venue:
  • Javascript: A Beginner's Guide
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

From the Book:Welcome to JavaScript: A Beginner's Guide! Years ago, I was surfing the Web and noticed that people were publishing pages about themselves and calling them homepages. After viewing a number of these, I decided to create a homepage myself. I had no idea where to begin but, through trial and error, I figured out how to code HTML and publish my documents on a Web server. Over time, I saw some interesting effects used on other homepages (like alert messages that popped up out of nowhere or images that would magically change when I moved my mouse over them). I was curious and just had to know what was being done to create those effects. Were these page creators using HTML tags I didn't know about?Eventually, one site revealed what they were using to create those effects: JavaScript. I went in search of information on it, and came across a few tutorials and scripts on the Web. Since I had programmed in other languages (I remember a language called Ada), I was able to catch on to JavaScript fairly quickly by looking at these tutorials and scripts.I learned enough that I decided to create a Web site that would teach HTML and JavaScript to beginners. As soon as I began the project, I received questions from visitors that were way over my head-forcing me to dig deeper and learn more about JavaScript. As a result, I became completely familiar with this programming language and what it can do. Not only can you add fun effects to a Web page, you can create scripts that will perform useful tasks, like validate form input or add navigational elements to documents.The goal of this book is to help you to learn the basics of the JavaScript language with as little hair pulling and monitor smashing as possible. You do not need any prior programming experience to learn JavaScript from this book. All you need is knowledge of HTML and how to use your favorite text editor and Web browser (see Module 1 for more information).What This Book CoversThis book is divided into 17 chapters, or modules, which cover specific topics on the JavaScript language. The first two modules cover the most basic aspects of the language: what it is, what you need, and how to place JavaScript into an HTML file. The middle of the book (Modules 3-15) covers beginning JavaScript topics from variables all the way to using JavaScript with frames. The final two chapters (Modules 16-17) introduce some advanced techniques, and point you toward resources if you want to learn more about JavaScript once you have completed the book.Special FeaturesThis book includes a number of special features in each module to assist you in learning JavaScript. These features include:Goals: Each module begins with a set of goals that outline the topics that you will want to understand when you complete the module.Notes and Hints: Notes and Hints call your attention to noteworthy statements that you will find helpful as you move through the modules.1-Minute Drill: The drills allow you to practice topics by asking you a few questions on what has just been discussed. The questions are brief so that you will be able to answer them quickly and continue with the module.Ask The Expert: The Ask the Expert Sections lets you see what type of questions are commonly asked about certain topics, with responses from the author.Projects: Projects let you practice what you have learned using a hands-on approach. Each project will have you code a script through step-by-step directions on what you need to do to in order to accomplish the goal. You can find solutions to each project on the Osborne Web site at www.osborne.com.Mastery Check: Each module ends with a Mastery Check, which is a series of four or five questions that will determine whether you have mastered the topics covered in the module. The answers to each Mastery Check can be found in Appendix A.That's it! You are now familiar with the organization and special features of this book and you can begin your journey through JavaScript. If you find that you are stuck and need help, feel free to get online and visit the JavaScript discussion forums on my Web site at http://wvrw-javascriptcity.com/forums. The forums will allow you to interact with other JavaScript coders who may be able to help you with your questions.Now it is time to learn JavaScript. Get ready, get set, and have fun!