This topic is covered in the following lessons.
Learn to Code with JavaScript:
Client-Side Coding with JavaScript: