Item Details

JavaScript: A Beginner's Guide

John Pollock
Format
Book
Published
Berkeley, Calif. : Osborne/McGraw-Hill, c2001.
Language
English
ISBN
0072131403
Contents
  • 1 Introduction to JavaScript 1
  • What You Need to Know 2
  • Remember, It's Not Java 6
  • Similarities to Other Languages 7
  • Introduction to JavaScript 8
  • Project 1-1 Using JavaScript to Write Text 12
  • 2 Placing JavaScript in an HTML File 15
  • Using the HTML SCRIPT Tags 16
  • Creating Your First Script 20
  • Project 2-1 Insert a Script into an HTML Document 24
  • Revisiting "Hello World" in External Form 26
  • Project 2-2 Call an External Script from an HTML Document 29
  • Using JavaScript Comments 30
  • 3 Using Variables 35
  • What Is a Variable? 36
  • Why Are Variables Useful? 37
  • Defining Variables for Your Scripts 38
  • Understanding Variable Types 44
  • Project 3-1 Declare Variables 54
  • Using Variables in Scripts 55
  • Writing a Page of JavaScript 59
  • Project 3-2 Create an HTML Page with JavaScript 64
  • 4 Using Functions 69
  • Why Are Functions Useful? 70
  • Structuring Functions 72
  • Calling Functions in Your Scripts 80
  • Project 4-1 Create an HTML Page with Functions 97
  • Project 4-2 Write Your Own Functions 102
  • 5 JavaScript Operators 105
  • Understanding the Operator Types 106
  • Mathematical Operators 108
  • Assignment Operators 118
  • Project 5-1 Adjust a Variable Value 123
  • Comparison Operators 124
  • Logical Operators 130
  • Order of Operations 135
  • Project 5-2 True or False? 136
  • 6 Conditional Statements and Loops 139
  • Defining Conditional Statements 140
  • Conditional Statements 142
  • Project 6-1 Construct an if/else block 156
  • Defining Loops 157
  • Loops 158
  • Project 6-2 Work with for loops and while loops 172
  • 7 Event Handlers 175
  • Event Handler Locations and Uses 177
  • Project 7-1 Create a Button 181
  • Event Handlers 182
  • Project 7-2 Use Events to Send Out Alerts 195
  • More Events 196
  • Scripts for Event Handlers 199
  • Project 7-3 Practicing with Window Status and Location Properties 205
  • 8 Objects 207
  • Defining Objects 208
  • Creating Objects 210
  • Project 8-1 Create a Computer Object 228
  • Predefined JavaScript Objects 230
  • Project 8-2 Practicing with the Predefined Navigator Object 236
  • 9 Document Object 239
  • An Introduction to the Document Object 240
  • Properties 241
  • Project 9-1 Using Properties to Create a Page 269
  • Methods 270
  • Project 9-2 Extending te Basic Script 276
  • 10 Window Object 279
  • An Introduction to the Window Object 280
  • Properties 281
  • Project 10-1 Using the Location Property of the Window Object 289
  • Project 10-2 Create a New Window 318
  • 11 JavaScript Arrays 321
  • Defining and Accessing Arrays 324
  • Array Object Properties and Methods 330
  • Arrays and Loops 346
  • Project 11-1 Using Loops with Arrays 354
  • Associative Arrays 355
  • Project 11-2 Using Associative Arrays 358
  • 12 Math and Date Objects 361
  • Math Object 362
  • Properties 363
  • Project 12-1 Displaying a Random Link on a Page 385
  • Date Object 385
  • Project 12-2 Creating a JavaScript Clock 397
  • 13 Handling Strings 401
  • Introduction to the string Object 402
  • Properties of the string Object 405
  • Methods of the string Object 408
  • Project 13-1 Use charAt() to Find a First Letter 430
  • Putting It All Together 431
  • Project 13-2 Use indexOf() to Test an Address 434
  • 14 JavaScript and Forms 437
  • Accessing a Form 438
  • Properties and Methods of the form Object 445
  • Validation 460
  • Project 14-1 What's the Time? 465
  • Forms for Navigation 466
  • Project 14-2 Select Box Navigation Script 471
  • 15 JavaScript and Frames 475
  • An Introduction to Frames 476
  • Accessing Frames 483
  • Changing Frames 489
  • Project 15-1 Frame Changing 494
  • Frame Navigation 495
  • Using Variables Across Frames 502
  • Project 15-2 Variables Again 507
  • 16 An Introduction to Advanced Techniques 509
  • XML and XHTML 510
  • Debugging Scripts 515
  • Regular Expressions 523
  • Project 16-1 Validating a Web Address 534
  • Cookies 535
  • Project 16-2 Remember a Name 542
  • 17 More Advanced Techniques 545
  • Images 546
  • Project 17-1 Create a Navigational System of Images 562
  • DHTML Introduction 563
  • JavaScript Security 573
  • Project 17-2 Use DHTML Animation 576
  • A Answers to Mastery Checks 579
  • Module 1 Introduction to JavaScript 580
  • Module 2 Placing JavaScript in an HTML File 580
  • Module 3 Using Variables 580
  • Module 4 Using Functions 581
  • Module 5 JavaScript Operators 581
  • Module 6 Conditional Statements and Loops 581
  • Module 7 Event Handlers 582
  • Module 8 Objects 582
  • Module 9 Document Object 583
  • Module 10 Window Object 583
  • Module 11 Arrays 584
  • Module 12 Math and Date Objects 584
  • Module 13 Handling Strings 584
  • Module 14 JavaScript and Forms 585
  • Module 15 JavaScript and Frames 585
  • Module 16 An Introduction to Advanced Techniques 586
  • Module 17 More Advanced Techniques 586.
Description
xx, 603 p. : ill. ; 23 cm.
Technical Details
  • Access in Virgo Classic

  • LEADER 05871nam a2200265Ka 4500
    001 u3720688
    003 SIRSI
    005 20010731114924.0
    008 010514s2001 cau 001 0 eng d
    020
      
      
    a| 0072131403
    035
      
      
    a| (Sirsi) i0072131403
    035
      
      
    a| (OCoLC)46333766
    040
      
      
    a| VYR c| VYR d| MvI
    090
      
      
    a| QA76.73.J39 b| P64 2001
    100
    1
      
    a| Pollock, John.
    245
    1
    0
    a| JavaScript : b| a beginner's guide / c| John Pollock.
    260
      
      
    a| Berkeley, Calif. : b| Osborne/McGraw-Hill, c| c2001.
    300
      
      
    a| xx, 603 p. : b| ill. ; c| 23 cm.
    505
    0
    0
    g| 1 t| Introduction to JavaScript g| 1 -- t| What You Need to Know g| 2 -- t| Remember, It's Not Java g| 6 -- t| Similarities to Other Languages g| 7 -- t| Introduction to JavaScript g| 8 -- g| Project 1-1 t| Using JavaScript to Write Text g| 12 -- g| 2 t| Placing JavaScript in an HTML File g| 15 -- t| Using the HTML SCRIPT Tags g| 16 -- t| Creating Your First Script g| 20 -- g| Project 2-1 t| Insert a Script into an HTML Document g| 24 -- t| Revisiting "Hello World" in External Form g| 26 -- g| Project 2-2 t| Call an External Script from an HTML Document g| 29 -- t| Using JavaScript Comments g| 30 -- g| 3 t| Using Variables g| 35 -- t| What Is a Variable? g| 36 -- t| Why Are Variables Useful? g| 37 -- t| Defining Variables for Your Scripts g| 38 -- t| Understanding Variable Types g| 44 -- g| Project 3-1 t| Declare Variables g| 54 -- t| Using Variables in Scripts g| 55 -- t| Writing a Page of JavaScript g| 59 -- g| Project 3-2 t| Create an HTML Page with JavaScript g| 64 -- g| 4 t| Using Functions g| 69 -- t| Why Are Functions Useful? g| 70 -- t| Structuring Functions g| 72 -- t| Calling Functions in Your Scripts g| 80 -- g| Project 4-1 t| Create an HTML Page with Functions g| 97 -- g| Project 4-2 t| Write Your Own Functions g| 102 -- g| 5 t| JavaScript Operators g| 105 -- t| Understanding the Operator Types g| 106 -- t| Mathematical Operators g| 108 -- t| Assignment Operators g| 118 -- g| Project 5-1 t| Adjust a Variable Value g| 123 -- t| Comparison Operators g| 124 -- t| Logical Operators g| 130 -- t| Order of Operations g| 135 -- g| Project 5-2 t| True or False? g| 136 -- g| 6 t| Conditional Statements and Loops g| 139 -- t| Defining Conditional Statements g| 140 -- t| Conditional Statements g| 142 -- g| Project 6-1 t| Construct an if/else block g| 156 -- t| Defining Loops g| 157 -- t| Loops g| 158 -- g| Project 6-2 t| Work with for loops and while loops g| 172 -- g| 7 t| Event Handlers g| 175 -- t| Event Handler Locations and Uses g| 177 -- g| Project 7-1 t| Create a Button g| 181 -- t| Event Handlers g| 182 -- g| Project 7-2 t| Use Events to Send Out Alerts g| 195 -- t| More Events g| 196 -- t| Scripts for Event Handlers g| 199 -- g| Project 7-3 t| Practicing with Window Status and Location Properties g| 205 -- g| 8 t| Objects g| 207 -- t| Defining Objects g| 208 -- t| Creating Objects g| 210 -- g| Project 8-1 t| Create a Computer Object g| 228 -- t| Predefined JavaScript Objects g| 230 -- g| Project 8-2 t| Practicing with the Predefined Navigator Object g| 236 -- g| 9 t| Document Object g| 239 -- t| An Introduction to the Document Object g| 240 -- t| Properties g| 241 -- g| Project 9-1 t| Using Properties to Create a Page g| 269 -- t| Methods g| 270 -- g| Project 9-2 t| Extending te Basic Script g| 276 -- g| 10 t| Window Object g| 279 -- t| An Introduction to the Window Object g| 280 -- t| Properties g| 281 -- g| Project 10-1 t| Using the Location Property of the Window Object g| 289 -- g| Project 10-2 t| Create a New Window g| 318 -- g| 11 t| JavaScript Arrays g| 321 -- t| Defining and Accessing Arrays g| 324 -- t| Array Object Properties and Methods g| 330 -- t| Arrays and Loops g| 346 -- g| Project 11-1 t| Using Loops with Arrays g| 354 -- t| Associative Arrays g| 355 -- g| Project 11-2 t| Using Associative Arrays g| 358 -- g| 12 t| Math and Date Objects g| 361 -- t| Math Object g| 362 -- t| Properties g| 363 -- g| Project 12-1 t| Displaying a Random Link on a Page g| 385 -- t| Date Object g| 385 -- g| Project 12-2 t| Creating a JavaScript Clock g| 397 -- g| 13 t| Handling Strings g| 401 -- t| Introduction to the string Object g| 402 -- t| Properties of the string Object g| 405 -- t| Methods of the string Object g| 408 -- g| Project 13-1 t| Use charAt() to Find a First Letter g| 430 -- t| Putting It All Together g| 431 -- g| Project 13-2 t| Use indexOf() to Test an Address g| 434 -- g| 14 t| JavaScript and Forms g| 437 -- t| Accessing a Form g| 438 -- t| Properties and Methods of the form Object g| 445 -- t| Validation g| 460 -- g| Project 14-1 t| What's the Time? g| 465 -- t| Forms for Navigation g| 466 -- g| Project 14-2 t| Select Box Navigation Script g| 471 -- g| 15 t| JavaScript and Frames g| 475 -- t| An Introduction to Frames g| 476 -- t| Accessing Frames g| 483 -- t| Changing Frames g| 489 -- g| Project 15-1 t| Frame Changing g| 494 -- t| Frame Navigation g| 495 -- t| Using Variables Across Frames g| 502 -- g| Project 15-2 t| Variables Again g| 507 -- g| 16 t| An Introduction to Advanced Techniques g| 509 -- t| XML and XHTML g| 510 -- t| Debugging Scripts g| 515 -- t| Regular Expressions g| 523 -- g| Project 16-1 t| Validating a Web Address g| 534 -- t| Cookies g| 535 -- g| Project 16-2 t| Remember a Name g| 542 -- g| 17 t| More Advanced Techniques g| 545 -- t| Images g| 546 -- g| Project 17-1 t| Create a Navigational System of Images g| 562 -- t| DHTML Introduction g| 563 -- t| JavaScript Security g| 573 -- g| Project 17-2 t| Use DHTML Animation g| 576 -- g| A t| Answers to Mastery Checks g| 579 -- g| Module 1 t| Introduction to JavaScript g| 580 -- g| Module 2 t| Placing JavaScript in an HTML File g| 580 -- g| Module 3 t| Using Variables g| 580 -- g| Module 4 t| Using Functions g| 581 -- g| Module 5 t| JavaScript Operators g| 581 -- g| Module 6 t| Conditional Statements and Loops g| 581 -- g| Module 7 t| Event Handlers g| 582 -- g| Module 8 t| Objects g| 582 -- g| Module 9 t| Document Object g| 583 -- g| Module 10 t| Window Object g| 583 -- g| Module 11 t| Arrays g| 584 -- g| Module 12 t| Math and Date Objects g| 584 -- g| Module 13 t| Handling Strings g| 584 -- g| Module 14 t| JavaScript and Forms g| 585 -- g| Module 15 t| JavaScript and Frames g| 585 -- g| Module 16 t| An Introduction to Advanced Techniques g| 586 -- g| Module 17 t| More Advanced Techniques g| 586.
    596
      
      
    a| 5
    650
      
    0
    a| JavaScript (Computer program language)
    994
      
      
    a| Z0 b| VA@
    999
      
      
    a| QA76.73 .J39 P64 2001 w| LC i| X004523022 l| STACKS m| SCI-ENG t| BOOK

Availability

Google Preview

Library Location Map Availability Call Number
Brown Science and Engineering Stacks N/A Available