You may already know how to use HTML and CSS to create websites. If so, you're ready to add more power to your programming with JavaScript. This programming language lets you add interactivity to your pages by creating features such as buttons, picture carousels, and collapsible panels to your web pages.
The course begins with the basics of JavaScript code and then moves on to more advanced topics. Throughout the course, you'll get plenty of hands-on practice to give you the experience you need to really understand how JavaScript works. Additionally, since no JavaScript course would be complete without a discussion of jQuery, you'll learn about it as well. By the end of the course, you'll understand how to use jQuery to catapult your basic JavaScript knowledge to incredible new heights.
This course assumes you already know HTML and CSS. JavaScript is always used with these two programming languages, not as an alternative to them.
Alan Simpson is an award-winning author, having published over 100 books on computers and the Internet. His books have been published in over a dozen language worldwide. He has covered virtually all aspects of the computer industry, including web development, operating systems, programming, networking, and security. As a seasoned veteran of the computer industry, he is widely regarded as a computer and Internet guru.
The instructional materials required for this course are included in enrollment and will be available online.
Hide Syllabus
Lesson 1
What Is JavaScript?
In this lesson, you'll get right into it and learn what JavaScript is, where it came from, who uses it, and why you want to learn it. Most important, you'll learn how and where to write JavaScript and not just about history, theory, or concepts. You'll go hands-on, and by the time you finish this first lesson, you will have already created, tested, and edited some real JavaScript code.
Executing Scripts
Successful JavaScript programming requires controlling not just what a bit of JavaScript does but also when it should perform its task. This lesson will show you how that works and introduce you to the concept of event handling, which allows you to write code that responds to various events, such as clicking an item on the screen.
The Document Object Model
This lesson is all about the Document Object Model (DOM), a set of rules and words you use to access and manipulate the elements of a web page. You'll also learn about variables, which are temporary placeholders for information that can vary. While such terms and concepts are often scary to the new developers, they actually turn out to be quite easy to understand once you remove the shroud of mystery.
Dates, Numbers, and Decision-Making
Code that makes decisions is the hallmark of all modern interactive websites and applications. In this lesson, you'll learn about JavaScript's ability to make if and else decisions (If this happens, do this, or else do this). You'll also learn about data types, strings, numbers, and dates, and how and why programming languages treat these types of information differently.
Search My Site Code
This lesson will give you some Search My Site code. This is particularly handy for larger multipage sites, where users may want to search for a particular word or phrase within your site without having to go through the site one page at a time. Unlike some services that charge you money for this sort of thing, the method you'll learn here is free of charge. And as an added bonus, you'll learn how to add drop-down list controls to your pages.
Fun With Music
In this lesson, you'll learn to use JavaScript to add sound effects, background music, and custom music player controls to your web pages. You'll also learn how to set HTML attributes and CSS styles through JavaScript and how to test the user's browsers for compatibility with modern HTML5 features.
Building a Picture Carousel
In this lesson, you'll start developing a picture carousel that allows users to click or cycle through thumbnail images, seeing an enlargement of one at a time. These can be a fun and useful addition to any website. Along the way, you'll learn some tips and tricks for using JavaScript with pictures and some new programming concepts like global variables and string manipulation.
Fun With Arrays and Loops
This lesson is all about arrays and loops. Those are the main constructs around which some of the best interactive elements, like slideshows and carousels, are built. In this lesson, you'll learn how to create your own JavaScript arrays and loops and start getting a handle on how you can apply them toward building more interactive web pages.
Timers and Transition Effects
Bringing motion to web pages requires controlling the speed at which things happen. This lesson is about the two main ways you can control speed: JavaScript timers and CSS transitions. You'll also see how you can use JavaScript to trigger and control CSS transitions, which allows you to get some cool effects with minimal coding.
Introducing jQuery
Because JavaScript is such a popular language, people have written many libraries to extend and simplify its use. One of the most widely used and well known is jQuery. In this lesson, you'll learn what jQuery is and how to start using it in your own websites.
Creating Collapsible Panels and Accordions
In this lesson, you'll build on what you learned last time about jQuery to add some powerful new techniques to your arsenal. Specifically, you'll see how you can use jQuery to create collapsible panel and accordion controls. These are custom controls that allow you to create more modern-looking websites in which users can click to expand information, making your site more efficient, effective, and easier to use on touch screens.
Using jQuery Plugins
jQuery is more than just a JavaScript library. It's a complete ecosystem that includes lots of prewritten code commonly referred to as jQuery plugins. There are thousands of free plugins available, and they provide for all kinds of slideshows, carousels, touchscreen interfaces, and countless other features that you can add to your own creations, for free, with minimal fuss. In this lesson, you'll learn how to find jQuery plugins and incorporate them into your own site.
Hide Syllabus