Beginning JavaScript, 3rd Edition docx

791 775 0
Beginning JavaScript, 3rd Edition docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... used browsers, IE and Firefox, support JavaScript, as do almost all of the less commonly used browsers So you can assume that most people browsing your web site will have a version of JavaScript installed, though it is possible to use a browser’s options to disable it Of the other scripting languages we mentioned, VBScript, which can be used for the same purposes as JavaScript, is supported only by Internet... understands; hence it is an interpreted language Computers understand only machine code, which is essentially a string of binary numbers (that is, a string of zeros and ones) As the browser goes through the JavaScript, it passes it to a special program called an interpreter, which converts the JavaScript to the machine code your computer understands It’s a bit like having a translator to translate English... technology of the time, Netscape decided 2 Chapter 1: Introduction to JavaScript and the Web that JavaScript sounded more exciting When JavaScript really took off, Microsoft decided to add its own brand of JavaScript, called JScript, to Internet Explorer Since then, Netscape, Microsoft, and others have released improved versions and included them in their latest browsers Although these different brands and... www.wrox.com/contact/techsupport shtml and complete the form there to send us the error you have found We’ll check the information and, if appropriate, post a message to the book’s errata page and fix the problem in subsequent editions of the book p2p.wrox.com For author and peer discussion, join the P2P forums at p2p.wrox.com The forums are a Web-based system on which you can post messages relating to Wrox books and related... JavaScript and the Web number of very good tools specifically aimed at developing web-based applications, such as the excellent Dreamweaver 8 from Adobe, are also available However, this book concentrates on JavaScript, rather than any specific development tool When it comes to learning the basics, it’s often best to write the code by hand rather than relying on a tool to do it for you This helps you to understand... your web pages in It’s best to develop your JavaScript code on the sort of browsers you expect visitors to use to access your web site You’ll see later in the chapter that there are different versions of JavaScript, each supported by different versions of the web browsers Each of these JavaScript versions, while having a common core, also contains various extensions to the language All the examples that... option later on of choosing which bits to install In particular it’s worth selecting the Developer Tools component While not essential, it’s an extra that’s nice to have Even if your browser supports JavaScript, it is possible to disable this functionality in the browser So before you start on your first JavaScript examples in the next section, you should check to make sure JavaScript is enabled in... JavaScript is where you want to add some sort of intelligence or logic to the page For example, if the user’s screen resolution is particularly low, you might want to change what’s displayed on the page; with JavaScript, you can do this Another reason for using JavaScript to change properties might be for special effects — for example, making a page fade in from white to its final color A Brief Look at Browsers . alt="" Beginning JavaScript ® Third Edition Paul Wilton Jeremy McPeak 01_051511 ffirs.qxp 4/13/07 6:19 PM Page iii Beginning JavaScript ® Third Edition 01_051511. Page ii Beginning JavaScript ® Third Edition Paul Wilton Jeremy McPeak 01_051511 ffirs.qxp 4/13/07 6:19 PM Page iii Beginning JavaScript ® , Third Edition Published

Ngày đăng: 14/03/2014, 23:20

Từ khóa liên quan

Mục lục

  • About the Authors

  • Acknowledgments

  • Credits

  • Contents

  • Introduction

    • Whom This Book Is For

    • What This Book Covers

    • What You Need to Use This Book

    • Conventions

    • Source Code

    • Errata

    • p2p.wrox.com

    • Chapter 1: Introduction to JavaScriptand the Web

      • Introduction to JavaScript

        • What Is JavaScript?

        • Why Choose JavaScript?

        • What Can JavaScript Do for Me?

        • Tools Needed to Create JavaScriptWeb Applications

        • The <script> Tag and Your First SimpleJavaScript Program

        • A Brief Look at Browsers and Compatibility Problems

        • Introducing the “Who Wants To Be A Billionaire” Trivia Quiz

          • Ideas Behind the Coding of the Trivia Quiz

          • What Functionality to Add and Where?

          • Summary

Tài liệu cùng người dùng

Tài liệu liên quan