1. Trang chủ
  2. » Giáo án - Bài giảng

mcgraw-hill osborne how to do everything with javascript

369 428 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 369
Dung lượng 7,6 MB

Nội dung

[...]... feel free to use the new features and improvements in JavaScript 2.0 to your heart’s content! 15 1 16 How to Do Everything with JavaScript Test JavaScript Programs Using HTML Before jumping into the fundamentals of JavaScript, we need to set up a way to test our code The easiest way to test a JavaScript program is by putting it inside an HTML page and loading it in a JavaScript- enabled browser To run... a web browser You don’t have to be an HTML expert, although it will help if you have some experience with that language When encountering new HTML for the first time, I will briefly explain what’s going on, but always in the context of JavaScript xvii xviii How to Do Everything with JavaScript How This Book Is Organized How to Do Everything with JavaScript is organized into three main sections Each... Build an HTML Document Indicate the Document Type with 142 145 146 xi xii How to Do Everything with JavaScript Add a Title and Define Document Keywords Format Text with HTML Elements Format Text with Style Sheets Use to Add JavaScript to a Web Page ... currently dominate Rather, JavaScript 2.0 tries to improve upon the strengths of the existing language, while also adding features that developers often like to use when developing large or complex code, namely: ■ The ability to write modular and object-oriented applications ■ Improved ability to interface with other programming languages 13 1 14 How to Do Everything with JavaScript ■ The ability to write... the client machine JavaScript that runs on the server machine is referred to as server-side JavaScript Fairly soon thereafter, control of the DOM was handed over to the World Wide Web Consortium (W3C), a standards organization The DOM standard has evolved from dealing with how JavaScript interacts with a browser to dealing with standard ways to create, read, and modify HTML and XML documents The W3C... Chapters 13–15 cover advanced JavaScript topics This part deals with debugging a JavaScript program, errorproofing code, and communicating with other objects embedded in a web page Often, the best way to learn a programming language like JavaScript is to play around with it Don’t be afraid to try some of the JavaScript examples in the book yourself Type them in and change them to something of your own design—you... XML, DOM, and Cascading Style Sheets (CSS) The various documents related to the DOM standards can be viewed at http://www.w3.org/DOM/DOMTR It’s important to note that the original DOM (sometimes called Level 0) is not an official standard JavaScript applications that are designed to run inside a browser are subject to a number of security restrictions These applications generally do not have access to. .. you cannot rely on too heavily JavaScript Development Tools One of JavaScript s strengths is that expensive development tools are not usually required With a simple text editor such as Notepad, which is built into Windows, you can create relatively complex JavaScript code with little trouble Since it is an interpreted language inside the context of a web browser, you don’t even need to buy a compiler... Prepare to Program in JavaScript might be trailing the pack in many respects, for developers who regularly work with Adobe’s graphics- and video-editing tools, GoLive may be an easy choice As with other web authoring tools, you can download a trial copy of GoLive 6.0 GoLive is available for both Windows and Mac, and can be downloaded from Adobe’s web site at http://www.adobe.com/products/golive NetObjects... of how things work Ask yourself, “What will happen if I do this instead?” Then go ahead and try it— nothing can go seriously wrong The worst that can happen is that something you try doesn’t work And that’s OK Simply shrug your shoulders and try again Part I Learn JavaScript Basics This page intentionally left blank Chapter 1 Prepare to Program in JavaScript 4 How to Do Everything with JavaScript How . . . . . . . . . . 335 xiv How to Do Everything with JavaScript HowTo-Tght (8) / How to Do Everything with JavaScript/ Duffy / 222887-3 / Front Matter P:10CompHowTo8887-3fm.vp Wednesday,. shoulders and try again. xviii How to Do Everything with JavaScript HowTo-Tght (8) / How to Do Everything with JavaScript/ Duffy / 222887-3 / Front Matter P:10CompHowTo8887-3fm.vp Wednesday,. profile Composite Default screen xii How to Do Everything with JavaScript HowTo-Tght (8) / How to Do Everything with JavaScript/ Duffy / 222887-3 / Front Matter Add a Title and Define Document Keywords . .

Ngày đăng: 28/04/2014, 16:54

TỪ KHÓA LIÊN QUAN