JavaScript For Beginners - Winterstein

Transcription

JavaScript for BeginnersCourse notes

JavaScript for Beginners12What is a Programming Language? .5Key Points . 52Server-side vs. Client-side .7Key Points . 73About JavaScript .10Key Points . 104A Tour of JavaScript.13Key Points . 13Project. 135Objects, Properties and Methods .18Key Points . 186Assigning Values to Properties .21Key Points . 21Project. 227About Comments .25Key Points . 25Project. 268Hiding Scripts from Older Browsers .28Key Points . 28Project. 299Automatically Redirecting the User .31Key Points . 31Project. 3110 Alert, Prompt and Confirm .33Key Points . 33Project. 3411 Variables and Operators .35Key Points . 35Project. 3812 Comparisons.40Key Points . 40Project. 4113 Conditionals .42Key Points . 42Project. 45Project 2. 46

JavaScript for Beginners314 Looping.48Key Points . 48Project. 5015 Arrays .53Key points . 53Project. 5516 Associative & Objective Arrays .57Key Points . 57Project. 5817 Two Dimensional Arrays .59Key Points . 59Project. 6018 String Manipulation.61Key Points . 61Project. 6519 Using Functions .66Key Points . 66Project. 6920 Logical Operators .71Key Points . 71Project. 7421 Using Event Handlers .75Key Points . 75Project. 7722 Working with Images .79Key Points . 79Project. 8023 Simple Image Rollovers .81Key Points . 81Project. 8324 Object Instantiation and Better Rollovers .85Key Points . 85Project. 8625 Working with Browser Windows .88Key Points . 88Project. 9026 Positioning Browser Windows .91Key Points . 91Project. 92

JavaScript for Beginners427 Focus and Blur.93Key Points . 93Project. 9428 Dynamically Created Content .95Key Points . 95Project. 9529 Working with Multiple Windows .97Key Points . 97Project. 9830 Using an External Script File .99Key Points . 99Project. 10031 Javascript and Forms.101Key Points . 101Project.

JavaScript for Beginners 10 3 About JavaScript Key Points o JavaScript is an interpreted, client-side, event-based, object-oriented scripting language that you can use to add dynamic interactivity to your web pages. o JavaScript scripts are written in plain text, like HTML, XML, Java, PHP and just about any other modern computer code. In