Interactivity with JavaScript
Ends soon! Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Interactivity with JavaScript
This course is part of Web Design for Everybody: Basics of Web Development & Coding Specialization
230,811 already enrolled
Included with
Learn more
7,377 reviews
7,377 reviews
What you'll learn
Understand how JavaScript is used to react to user events.
Write your own JavaScript code to let a person interact with your page.
Discuss how JavaScript can introduce accessibility issues.
Skills you'll gain
Details to know
3 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 4 modules in this course
If you want to take your website to the next level, the ability to incorporate interactivity is a must. But adding some of these types of capabilities requires a stronger programming language than HTML5 or CSS3, and JavaScript can provide just what you need. With just a basic understanding of the language, you can create a page that will react to common events such as page loads, mouse clicks and movements, and even keyboard input.
This course will introduce you to the basics of the JavaScript language. We will cover concepts such as variables, looping, functions, and even a little bit about debugging tools. You will understand how the Document Object Model (DOM) is used by JavaScript to identify and modify specific parts of your page. After the course, learners will be able to react to DOM Events and dynamically alter the contents and style of their page. The class will culminate in a final project - the creation of an interactive HTML5 form that accepts and verifies input. This can be completed as the third or fourth course in the Web Design For Everybody specialization.
If you haven't use a traditional programming language before, this first week is key. Before we begin with the how, we will talk about the why, mainly why we want to use JavaScript. The main reason is that it is very easy for JavaScript to work with the DOM. And easy is always a great way to start. Speaking of starting out, it is also always more fun when our code actually does something we can see, so we will jump quickly into different ways we can generate output. It won't be flashy yet, but it will be a great way to get your feet wet with traditional programming. After that we go back to the basics of how a computer uses data. We begin with variables, expressions, and operators.
What's included
12 videos9 readings1 assignment1 discussion prompt
12 videosβ’Total 80 minutes
- Introduction to JavaScriptβ’4 minutes
- DOM Review with Object Oriented Programmingβ’7 minutes
- Newer DOM Methodsβ’5 minutes
- Outputβ’13 minutes
- Variablesβ’9 minutes
- Data Typesβ’8 minutes
- Operators and Expressionsβ’8 minutes
- Getting Started with Githubβ’5 minutes
- Downloading and Uploading Code with VSCode and Githubβ’4 minutes
- Copying Code with GitHub Codespacesβ’4 minutes
- Uploading to GitHub Pagesβ’8 minutes
- Review: Publishing Your Siteβ’5 minutes
9 readingsβ’Total 42 minutes
- Course Syllabusβ’10 minutes
- Pre-Course Surveyβ’5 minutes
- Course Resourcesβ’4 minutes
- "What are these deadlines?"β’3 minutes
- Resourcesβ’2 minutes
- The Document Object Model (DOM)β’5 minutes
- Accessing the DOM Methodsβ’10 minutes
- Semicolonsβ’1 minute
- Trying to Create and Debug Your Own Outputβ’2 minutes
1 assignmentβ’Total 40 minutes
- Week One Quizβ’40 minutes
1 discussion promptβ’Total 10 minutes
- Share Your Tipsβ’10 minutes
If you have written HTML code in the past, hopefully you have fallen into the great habit of validating your code -- making sure that you close all of your open tags. There are other rules that you may or may not have been following as well, for instance the importance of using each id attribute only once per page. This is called writing "clean" code. The reasoning and importance of following these rules becomes clear as we begin to manipulate the different components of your webpage based on the the actions of the person interacting with your page. In particular you will learn about the JavaScript Mouse Events and Touch Events. This week's materials will end with a photo gallery example that you can create along with me.
What's included
7 videos7 readings1 assignment1 peer review1 app item
7 videosβ’Total 53 minutes
- Functionsβ’7 minutes
- Code Placementβ’7 minutes
- Folder Structure / Organizing Your Codeβ’6 minutes
- Eventsβ’10 minutes
- Code With Me: Eventsβ’8 minutes
- "this"β’10 minutes
- Homework: JavaScript Interactive Photo Galleryβ’6 minutes
7 readingsβ’Total 36 minutes
- Resourcesβ’2 minutes
- Functionsβ’3 minutes
- Organizing Your Codeβ’3 minutes
- Mastering Events and Functionsβ’10 minutes
- Just a little note before the next videoβ’3 minutes
- Homework Time!!β’5 minutes
- Introduction to the Gamut Galleryβ’10 minutes
1 assignmentβ’Total 30 minutes
- Week Two Quizβ’30 minutes
1 peer reviewβ’Total 45 minutes
- JavaScript Interactive Photo Galleryβ’45 minutes
1 app itemβ’Total 10 minutes
- Homework: Optional Submission Galleryβ’10 minutes
This week we will delve into more complex programming concepts: arrays and looping. Arrays allow you to represent groups of related information. Looping provides efficiency and flexibility to your programs. Using both we will expand upon the photo gallery example.
What's included
2 videos5 readings1 assignment
2 videosβ’Total 13 minutes
- JavaScript Arraysβ’7 minutes
- Code With Me: Arraysβ’5 minutes
5 readingsβ’Total 20 minutes
- Resourcesβ’5 minutes
- A JavaScript Cheat Sheetβ’5 minutes
- Tabindex and Accessibilityβ’3 minutes
- Using JavaScript with Attributesβ’5 minutes
- Arraysβ’2 minutes
1 assignmentβ’Total 30 minutes
- Week Three Review Quizβ’30 minutes
This week is all about putting concepts together to do "cool" things. And we even stop for a second to talk about the the trade-off between cool things and accessibility. The final project this week will be a new version of your coding project in Week 2. You will make an interactive photo gallery from your own images and will add the functionality of keyboard accessibility to it.
What's included
5 videos6 readings1 peer review1 app item
5 videosβ’Total 33 minutes
- Code With Me: Randomizing Your Images Using Arraysβ’8 minutes
- Code With Me: Using Lightboxβ’10 minutes
- Code With Me: Looping through Imagesβ’8 minutes
- Final Project Descriptionβ’3 minutes
- Conclusionβ’3 minutes
6 readingsβ’Total 35 minutes
- Resourcesβ’5 minutes
- Writing loops in JavaScriptβ’5 minutes
- Advanced Coding Techniquesβ’2 minutes
- "Cool Stuff" - Friend or Foe?β’3 minutes
- Final Project Descriptionβ’10 minutes
- Post-Course Surveyβ’10 minutes
1 peer reviewβ’Total 120 minutes
- Final Project: Your Own Accessible Photo Galleryβ’120 minutes
1 app itemβ’Total 10 minutes
- Final Project: Optional Submission Galleryβ’10 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructors
Offered by
Explore more from Mobile and Web Development
- Status: Free TrialU
University of California, Davis
Course
- Status: Free Trial
- Status: Free Trial
Course
Why people choose Coursera for their career
Learner reviews
- 5 stars
75.72%
- 4 stars
18.88%
- 3 stars
4.17%
- 2 stars
0.77%
- 1 star
0.44%
Showing 3 of 7377
Reviewed on Jul 27, 2017
It's a great course to begin understand JavaScript. It gives you needed basics of JS. And Colleen van Lent is excellent teacher, she helps you in this journey called "coding with JS".
Reviewed on Mar 15, 2016
An excellent course, my JavaScript has improved greatly since I completed the requirements. Colleen is a fantastic teacher, I found the lectures to be highly informative and the assignments good fun.
Reviewed on Feb 7, 2018
Well explained, I learned some interactivity with HTML by learning native JavaScript (was using jQuery always)... Perhaps I expected some more advanced stuff than this (like audio, video, canvas).
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you canβt afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, youβll find a link to apply on the description page.
More questions
Financial aid available,
