E ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161

Similar documents
Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p.

JavaScript Specialist v2.0 Exam 1D0-735

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

710 Index Attributes, 127 action attribute, 263 assigning, bottom attribute, domain name attribute, 481 expiration date attribute, 480 8

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

JavaScript CS 4640 Programming Languages for Web Applications

IT2353 WEB TECHNOLOGY Question Bank UNIT I 1. What is the difference between node and host? 2. What is the purpose of routers? 3. Define protocol. 4.

JavaScript CS 4640 Programming Languages for Web Applications

quiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a , 2-sided cheat she

PHP / MYSQL DURATION: 2 MONTHS

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

INDEX SYMBOLS See also

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-


Creating HTML files using Notepad

1 of 7 11/12/2009 9:29 AM


Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a

AIM. 10 September

Javascript Hierarchy Objects Object Properties Methods Event Handlers. onload onunload onblur onfocus

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Table Basics. The structure of an table

Dreamweaver Basics Outline

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

CERTIFICATE IN WEB PROGRAMMING

AJAX: Introduction CISC 282 November 27, 2018

CSC Web Programming. Introduction to JavaScript

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

CGS 3066: Spring 2015 JavaScript Reference

Chapter 1 Introduction to Computers and the Internet

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

FBCA-03 April Introduction to Internet and HTML Scripting (New Course)

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Introduction to using HTML to design webpages

JScript Reference. Contents

JavaScript & DHTML Cookbool(

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

Deccansoft Software Services

Web development using PHP & MySQL with HTML5, CSS, JavaScript

Code Editor. The Code Editor is made up of the following areas: Toolbar. Editable Area Output Panel Status Bar Outline. Toolbar

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

OU EDUCATE TRAINING MANUAL

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Programmazione Web a.a. 2017/2018 HTML5

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

HTML and CSS COURSE SYLLABUS

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

Web Site Development with HTML/JavaScrip

Creating Web Pages with HTML-Level III Tutorials HTML 6.01

Sections and Articles

Mobile Site Development

Alpha College of Engineering and Technology. Question Bank

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

JAVASCRIPT FOR PROGRAMMERS

ADOBE 9A Adobe Dreamweaver CS4 ACE.

Adobe Dreamweaver CS4

Creating Web Pages with SeaMonkey Composer


AJAX: The Basics CISC 282 March 25, 2014

AJAX: The Basics CISC 282 November 22, 2017

Introduction to WEB PROGRAMMING

Working with JavaScript

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Creating a Website: Advanced Dreamweaver

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

PHP Online Training. PHP Online TrainingCourse Duration - 45 Days. Call us: HTML

How to lay out a web page with CSS

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) What is JavaScript?

Chapter 3 Style Sheets: CSS

1. Cascading Style Sheet and JavaScript

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

Objective % Select and utilize tools to design and develop websites.

Outline. Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages

A.A. 2008/09. What is Ajax?

Creating Web Pages Using Netscape Composer AGENDA FOR THIS WORKSHOP. 1. How does it all work? 2. What do I need to get started at Fairfield?

Overview

Contents. Acknowledgments

User Interaction: jquery

PHP & My SQL Duration-4-6 Months

Glossary. advance: to move forward

Appendix D CSS Properties and Values

Client-Side Web Technologies. JavaScript Part I

PHP,HTML5, CSS3, JQUERY SYLLABUS

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

LING 408/508: Computational Techniques for Linguists. Lecture 14

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

How to use CSS text styles

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

5. JavaScript Basics

Figure 1 Properties panel, HTML mode

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6

Static Webpage Development

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU

Transcription:

A <a> element, 108 accessing objects within HTML, using JavaScript, 27 28, 28 activatediv()/deactivatediv(), 114 115, 115 ActiveXObject, AJAX and, 132, 140 adding information to page dynamically, 30, 30, 33, 33 addition operator (+), 36, 146 AJAX, 16, 131 144 ActiveXObject and, 132, 140 browser compatibility for, 131, 132, 135 136, 135 GET/POST and, 134, 135 getelementsbytagname() in, 137, 137 HTML and, 131 Internet Explorer and, 135 136, 135, 140. See also browser compatibility methods supported by XMLHttpRequest object in, 133, 133 MIME content and, 135 onreadystatechange property and, 132 133, 132, 136 open() method in, 134, 134, 136, 136 parms and parameters in, 134 135, 134 properties supported by XMLHttpRequest object in, 132, 132 readystate property and, 132 133, 132 readystate() and, 137, 137 remote scripting technology in, 131 responsetext property and, 133 responsexml and, 133, 137, 137 send() method in, 134, 134, 136, 136 setrequestheader() in, 135 statehandler() and, 136 step by step for, 135 138, 134 URLs and, 134 user interfaces created using, 131 132 weather display tool using, 138 142, 138 140, 143 web services and, 142 XML and, 131 XMLHttpRequest object in, 131 144 alert() method, 56, 56 Amazon, 142 anchors collection, 32, 66 AND (&&), 37, 147 APIs, 13 web services and, 14 15 applets collection, 32, 66 arrays, 41 43, 41, 42 data types within, 41 43, 41, 42 multidimensional, 42 43, 42 ASP, 3, 16 assignment operators, 36, 38 Asynchronous XML and JavaScript. See AJAX

160 B backend system integration, 13 16 background, 64, 75 79, 76, 77, 78 <body> element and, 76 color of, 76 77 image and url() modifier for, 76, 77, 77 position of image used as, 78, 78 repeating/tiling image used as, 78 79 scrolling of, vs. fixed, 77 78, 78 barchart(), 126, 126 127, 128 130, 129, 130 bitwise AND (&), 37, 39, 147 bitwise AND (&=sign), 36, 39, 146 bitwise left shift (<), 37, 39, 147 bitwise left shift (<=sign), 37, 39, 147 bitwise NOT ( ), 37, 147 bitwise NOT (!), 39 bitwise operators, 36, 37, 39, 39, 147 bitwise OR (`), 37, 39, 147 bitwise OR (`=sign), 36, 39, 146 bitwise right shift (>), 37, 39, 147 bitwise right shift (>=sign), 37, 39, 147 bitwise right shift with zero fill (>>), 37, 39, 147 bitwise XOR (^=sign), 36, 39, 146 blinking text, 93, 93 blur() method, 61 62, 61 <body> element, background definition in, 76 <body> tag, 26 27, 26, 28 29, 28, 66 Boolean operators, 36, 37, 38 39 borders, 79 84, 155 colors of, 80 81, 81 hierarchy of properties for, 80 individual border properties for, 84, 84 styles of, 80, 82 83, 83 width of, 82 break statement, 48 browse right shift with zero fill (>>=sign), 37, 39, 147 browser compatibility, 5, 20 21, 52 62 AJAX and, 131, 132, 135 136, 135 browser dialog window for, 52, 52 determining environments for, 23 25, 25 document object and, 66, 66 document object model (DOM) for HTML and, 21 22, 21 methods used to perform actions on window within, 149 150 navigator object and, 23 25, 24 testing code for, 22 23 browser dialog window, 52, 52 browsers, 5 real-time data updates and, 5 buttons in forms, 106 107 C C++, 36 cascading style sheets (CSS), 71 96, 153, 153 157 default style sheet in, 72 73, 72 external style sheets in, 72 73, 73 <head> tag and, 71, 73, 73 hierarchical arrangement of styles in, 71 HTML and, 71 in-line HTML style definition and, 74 75 internal and external style sheets combined in, 73 74, 74 internal style sheet in, 73 74, 73 JavaScript and, 95 <link> element for, 72 73, 73 overriding elements within, 73 75, 74, 75 properties of. See style sheet properties style attribute for, 74 75, 74 style object and, 95 style sheet properties in, 75 95, 153 155 background, 75 79, 76, 77, 78 borders, 79 84, 79 80, 155 fonts, 84 86, 84, 156 lists, 86 88, 87, 89, 157 margins, 89 90, 89, 90 padding (kerning), 90 91, 90, 91 text, 91 95, 91, 157 style sheets defined, 71 <style> element for, 73, 73 case statement, 47 48, 47 case-sensitivity of JavaScript, 23 charat(), 101

161 chart creation using barchart(), 126, 126 127, 128 130, 129, 130 showchart() and, 129 130 circlebuilder(), 43 44, 44 45, 45 clear() method, 70 client-side JavaScript, 16 close() method, 59 60, 60, 69 70, 70 closed property, 53 54, 54 color, 63 66 background, 76 77 borders, 80 81, 81 hex value for, 77, 92 name of, 77 RGB value for, 77, 92 text, 92, 92 comparison operators, 37 38, 37 concatenation operator (+), 36, 146 conditional operator, 46, 46 confirm() method, 56, 56 context menu, 7, 7 display/hide, 116 119, 117, 118, 119 cookies, 64 65, 65 document object and, 64 65, 65 curly bracket delimiter, 35, 35 cursor position, getymousepos()/getxmousepos(), 110, 111 customization, user-customizable views and, 8 10, 8, 9, 10 D dashboard application, user-customizable views for, 8 10, 8, 9, 10 data manipulation, 10 13 sorting data as, 10 11, 11 totaling columns as, 12 13, 12 data types, 40 arrays and, 41 43, 41, 42 date and time display digital clock using JavaScript, 4 5, 4 dynamic changes to, 33, 33 HTML code for, 4, 4 isdate(), 101 103, 102 <td> element, 4 time-triggered events and, 60 61, 60, 61 declaring variables and objects, 40 45 decrement and set ( =sign), 36, 146 decrement operator ( ), 36, 146 default statement, 48 default style sheet, cascading style sheets (CSS) and, 72 73, 72 defining a variable, 40, 40 defining JavaScript, 19 20 determining browser environment, 23 25, 25 dialog Arguments property, 54 dialog box, 52, 52. See also window object digital clock display, 4 5, 4 dispmenu(), 117, 119 <div> element, 107. See also dynamic data changes divide and set (/=sign), 36, 146 division operator (/), 36, 146 division, 37, 37 do...while statement, 50 51, 51 document object, 32, 49, 63 68 anchors collection and, 66 applets collection and, 66 <body> HTML tag and, 66 browser compatibility and, 66, 66 clear() method for, 70 close() method for, 69 70, 70 collections contained within, 66 67,66 collections within, 152 color settings for, 63 66 cookies and, 64 65, 65 forms collection and, 66, 67 68, 67 68 images collection and, 66 <img> element and, 67 information about the document contained in, 64 login() function, 68 methods for, 68 70, 69, 152 open() method for, 69 70, 70 properties of, 63 64, 63, 151 URLs and, 64 write() method for, 69 70, 70 writeln() method for, 70 document object model (DOM), 21 25, 21 drag and drop within a form, 114 116, 114, 115, 116 dynamic data changes, 30, 30, 33, 33, 105, 106, 107 122 <a> element and, 108 activatediv()/deactivatediv(), 114 115, 115 <div> element and, 107 drag and drop within, 114 116, 114, 115, 116 external JavaScript files and, 34 getymousepos()/getxmousepos(), 110, 111 movediv(), 109 112, 110, 112, 113, 114, 116 page output using, 107 122 showhidediv() and, 107 109, 108, 109 URL addresses for, 33 34, 34 weather display tool using AJAX and, 138 142, 138 140, 143 E ECMAScript, 21 elements collection, HTML, 30 31, 31

162 elements of JavaScript, 145, 145 152 else statement, 46, 46, 47, 47 embedded JavaScript in HTML, 20, 26 27, 27 = to (=sign=sign), 36, 146 ERP application using XML, 15 16, 15 escape characters, 98 European Computer Manufacturer s Association (ECMA), 21 event handlers, 54 56, 55 expandfolder(), 120 external JavaScript files, 34 external style sheets, CSS, 72 73, 73 F fade out/in an image, 124 124, 124 125, 126 Federal Express, 142 Federal Reserve Bank, 142 flavors of JavaScript and browser compatibility, 20 21 flow control, 45 51 focus() method, 61 62, 61 folders expandfolder(), 120 <span> element and, 120, 121 tree type view of, 119 122, 120, 121, 122 fonts, 84 86, 84, 91 95, 91, 156. See also text constants for, 85 family of, 85 padding (kerning) for, 90 91, 90, 91 size constants for, 156 size of, 85 86, 86 style of, 85 86 weight of (bold), 86 for statement, 35, 48 49, 48, 49 for...in statement, 49, 49, 50 <form> element, 97 form_submit(), 106 form-validation, 97 98, 97 forms adding data to, 105 107, 105 buttons in, 106 107 controlling, using functions, 105 107, 105 document object and, 67 68, 67 68 dynamic data changes, 105 107, 105, 106 <form> element and, 97 forms collection in HTML for, 30 31, 31 required fields checking using, 98 105, 98, 99, 100 101, 102, 103, 104 105 <select> element in, 106, 107 submitting, 105 107, 105 validation of data entry in, 97 98, 97 validity-checking in, 32 forms collection, 30 31, 31, 32, 66 frames, 62, 62 fromcharcode(), 104 functions in JavaScript, 97 130 display/hide context menu using, 116 119, 117, 118, 119 dispmenu(), 117, 119 dynamic page output using, 107 122. See also dynamic data changes form control using, 105 107, 105 form-validation using, 97 98, 97 hidemenu(), 118 image controls using, 122 130 required fields checking using, 98 105, 98, 99, 100 101, 102, 103, 104 105 tree type view of folders using, 119 122, 120, 121, 122 G GET/POST, AJAX and, 134, 135 getelementsbytagname(), 29 30, 29, 137, 137 getymousepos()/getxmousepos(), 110, 111 Google, 131, 142 greater than operator (>), 36, 146 greater than or = to (>=sign), 36, 146 H <head> tag, 26, 26, 56 cascading style sheets (CSS) and, 71, 73, 73 height and width of window, 52, 52, 58 hex value of colors, 77, 92 hidden variables, 16 hidemenu(), 118 HTML, 3 accessing objects within, using JavaScript, 27 28, 28 AJAX and, 131 anchors collection in, 32 applets collection in, 32 background properties and, 75 79, 76, 77, 78 <body> element in, 76 <body> tag in, 26 29, 26, 28, 66 border properties and, 79 84, 79 80, 155 cascading style sheets (CSS) and, 71 96. See also cascading style sheets document object model (DOM) for, 21 22, 21 document objects in, 32, 66 elements collection in, 30 31, 31 font properties and, 84 86, 84, 156 forms collection in, 30 31, 31, 32 getelementsbytagname() in, 29 30, 29 <head> tag in, 26, 26, 56 <html> tag in, 27, 28 ID attributes and, 27 28, 28 images collection in, 32

163 JavaScript embedded in, 20, 26 27, 27 JavaScript interaction with, 25 34 JavaScript referenced from, 20 lists and, 86 88, 87, 89, 157 location of JavaScript scripts within, 27 parent/child objects in, 28 29, 28 <script> tag in, 20, 20, 25 26, 25, 26 src attribute in, 26 text and, 91 95, 157. See also fonts <title> tag in, 32 33, 33 <html> tag, 27, 28 I ID attributes, HTML, 27 28, 28 identical operator (=sign-=sign), 36, 37 38, 37, 146 if statement, 24, 35, 35, 38 39, 46, 46, 47, 47, 99 100 images, 122 130 background using, 76, 77, 77 changing on mouseover, using switchimage(), 122 124, 123, 124 chart creation using barchart() and, 126, 126 127, 128 130, 129, 130 fade using fadeimg(), 124 125, 124 125, 126 <img> element, 122 123 onmouseover/onmouseout events with, 123 images collection, 32, 66 <img> element, 67, 122 123. See also images increment and set (+=sign), 36, 38, 146 increment operator (++), 36, 38, 146 indexof(), 101, 104 initialize a variable, 40, 40 <input>, 16 hidden variables and, 16 interfaces using JavaScript, 3 4, 4 Internet Explorer, 21, 22, 132 AJAX and, 135 136, 135, 140 interval, 60 61, 60, 61 isalpha(), 103, 103 isblank(), 98 105, 98, 99, 100 101, 102, 103, 104 105 isdate(), 101 103, 102 isnumeric(), 101, 101, 103 J Java vs. JavaScript, 19, 36 JDBC, 13 JScript, 21 K kerning. See padding (kerning) keytrap(), 103 104, 104 105, 105 L language structure and syntax, 35 39 less than (<), 36, 146 less than or = to (<=sign), 36, 146 letter spacing of text, 92, 92, 93 <li> tag, 88, 88 line through/strikethrough text, 93, 93 <link> element, cascading style sheets (CSS) and, 72 73, 73 lists, 86 88, 87, 89, 157 bullets, etc. in, 87 88 image used as list marker in, 87 location of markers in, 87 style of, 87 88, 88 <ul> and <li> tags in, 88, 88 location of JavaScript scripts, 27 logical (Boolean) type, 40 login() function, 68 loops, 48 49, 48, 49 do...while, 50 51, 51 with, 51, 51 lowercase text, 94, 94 M margins, 89 90, 89, 90 math operators, 36 37, 146 147 menus context type, display/hide, 116 119, 117, 118, 119 dispmenu(), 117, 119 hidemenu(), 118 methods document object, 68 70, 69 window object, 56, 57 Microsoft, 21 Microsoft Outlook Web Access, 131 MIME content, AJAX and, 135 modulus and set (%=sign), 36, 146 modulus operator (%), 36, 38, 38, 146 movediv(), 109 112, 110, 112, 113, 114, 116 Mozilla, 21, 132 multidimensional arrays, 42 43, 42 multiplication operator (asterisk), 36, 146 multiply and set (asterisk=sign), 36, 146 N National Weather Service, 140, 142. See also weather display tool using AJAX navigate() method, 58, 59 navigator object, 23 25, 24 Netscape, 21, 22 Netscape Enterprise Server, 20

164 NOT (!), 37, 147 not = to (!=sign), 36, 146 not identical operator (!-=sign), 36, 37 38, 37, 146 null type, 40 numeric operations, 36 numeric type, 40 O objects, 40 45 declaring, 40 45 document. See document object objects contained within window objects, 62, 62 user-defined, 43 44, 43 44 window. See window object ODBC, 13 onblur/onfocus events, 55, 55 onclick event, 106 onmouseover/onmouseout events, 123 onreadystatechange property, 132 133, 132, 136 onsubmit event, form validation and, 97 98, 97 open(), 58, 58, 59, 69 70, 70 AJAX and, 134, 134, 136, 136 operators, 36 37, 146 147 OR (``), 37, 147 order processing, HTML vs. JavaScript, 5, 6, 7 over/underlined text, 93, 93 overriding elements within a CSS, 73 75, 74, 75 P padding (kerning), 90 91, 90, 91 parent/child objects, 28 29, 28 close() method and, 59 60 closed property for, 53 54, 54 PHP, 3, 16 pop-up windows, 58, 58 POST, AJAX and, 134, 135 print() method, 60, 60 programming, sources of free JavaScript code, 143, 143 prompt() method, 56, 56 R readystate property, 132 133, 132, 137, 137 real-time data updates, 5. See also dynamically changing data referencing JavaScript from HTML/XML, 20 remote scripting, 131 required-fields checking, 98 105, 98, 99, 100 101, 102, 103, 104 105 responsexml, 137, 137 returnvalue property, 54 RGB values of colors, 77, 92 S <script>, 20, 20, 25 26, 25, 26 scrolling background, 77 78, 78 <select> element, 106, 107 semicolon delimiter, 35, 35 send() method, AJAX and, 134, 134, 136, 136 server-side interaction, 16, 17 set value (=sign), 36, 146 setrequestheader(), 135 showchart(), 129 130 showhide(), 106 showhidediv(), 107 109, 108, 109 sorting data, 10 11, 11 sources of free JavaScript code, 143, 143 <span> element, 120, 121 special characters in JavaScript, 145 src attribute, 26 standards for JavaScript code, 21 statehandler(), 136 strikethrough text, 93, 93 string operations, 36 string type, 40 style attribute, CSS, 74 75, 74 style object, cascading style sheets (CSS) and, 95 style sheet properties, in CSS, 75 89, 153 155 background, 75 79, 76, 77, 78 borders, 79 84, 79 80, 155 fonts, 84 86, 84, 156 lists, 86 88, 87, 89, 157 margins, 89 90, 89, 90 padding (kerning), 90 91, 90, 91 text, 91 95, 91, 157 <style> element, 73, 73 submitting a form, 105 107, 105, 106 subtraction operator ( ), 36, 146 switch statement, 47, 47, 48 switchimage(), 122 124, 123, 124 syntax. See language structure and syntax T tables, ID attributes for, 27 28, 28 <td> element, 4 text, 91 95, 91, 157. See also fonts blinking, 93, 93 color of, 92, 92 direction of, 92 letter spacing of, 92, 92, 93 line through/strikethrough, 93, 93 over/underline, 93, 93 transform case (upper/lowercase), 94, 94 white space and, 95 wrapping of, 95

165 tiled image background, 78 79 time-triggered events, 60 61, 60, 61 timeout, 60 61, 60, 61 title bar, 32 33, 33 <title> tag, 32 33, 33 top property, 54 totalling columns of data, 12 13, 12 tree-type view of folders, 119 122, 120, 121, 122 U U.S. Postal System, 142 <ul> tag, 88, 88, 88 underlined text, 93, 93 uniform resource locator (URL) addresses, 33 34, 34, 58 AJAX and, 134 document object and, 64 uppercase text, 94, 94 UPS, 142 user-customizable views, 8 10, 8, 9, 10 user-defined objects, 43 44, 43 44 uses for JavaScript, 3 4 V validity-checking in forms, 32 variables, 40 45 data types for, 40, 41 declare and initialize, 40, 40 declaring, 40 45 defining, 40, 40 redefining, 41, 41 W weather display tool using AJAX, 138 142, 138 140, 143 weather report application, 13 14, 14 web services and AJAX, 142 web services and APIs, 14 15 while statement, 35, 50 51, 50, 54 white space and text, 95 window object, 52 62 alert() method for, 56, 56 blur() method for, 61 62, 61 browser dialog window for, 52, 52 close() method for, 59 60, 60 closed property for, 53 54, 54 confirm() method for, 56, 56 dialog Arguments property for, 54 event handlers for, 54 56, 55 focus() method for, 61 62, 61 frames for, 62, 62 height and width of, 52, 52, 58 methods for, 56, 57, 149 150 navigate() method for, 58, 59 objects contained within, 62, 62, 151 onblur/onfocus events for, 55, 55 open() method for, 58, 58, 59, 150 pop-up windows and, 58, 58 print() method for, 60, 60 prompt() method for, 56, 56 properties of, 53, 53 54, 148 149 returnvalue property for, 54 time-triggered events and, 60 61, 60, 61 top property for, 54 URLs and, 58 window.open method options for, 150 window.open method options, 150 with statement, 51, 51 World Wide Web Consortium (W3C), 21 wrapping text, 95 write() method, 69 70, 70 writeln() method, 70 X XML, 5, 13, 20 AJAX and, 131 ERP application using, 15 16, 15 referencing JavaScript from, 20 XMLHttpRequest object. See AJAX Y Yahoo, 140, 142. See also weather display tool using AJAX