Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Learning Coding
    Learning Coding
    7,134 Points

    Clarification about console.log

    Posted December 26, 2016 10:34pm by Learning Coding
    Learning Coding
    7,134 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • debbie williams
    debbie williams
    7,801 Points

    Perform: Event Handling

    Posted April 22, 2016 6:21pm by debbie williams
    debbie williams
    7,801 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • Ivan A.
    Ivan A.
    9,627 Points

    After JQuery....

    Posted April 11, 2016 6:09pm by Ivan A.
    Ivan A.
    9,627 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    8 Answers

  • john larson
    john larson
    16,594 Points

    I'm not fond of the MDN documentaion...

    Posted April 6, 2016 12:56am by john larson
    john larson
    16,594 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • John Coolidge
    John Coolidge
    12,614 Points

    I don't understand event handling, any resources?

    Posted August 25, 2015 12:48pm by John Coolidge
    John Coolidge
    12,614 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    4 Answers

  • Nick Tolbert
    Nick Tolbert
    12,003 Points

    [RESOLVED]the addTask function is not running the console.log when addButton is click

    Posted July 14, 2015 5:12pm by Nick Tolbert
    Nick Tolbert
    12,003 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    2 Answers

  • Grace Kelly
    Grace Kelly
    33,990 Points

    Why does addTask() load the function straight away even with an onclick event handler?

    Posted June 27, 2015 3:59pm by Grace Kelly
    Grace Kelly
    33,990 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • Dan Putnam
    Dan Putnam
    5,045 Points

    Does a var that is set = to an object 'become' that object?

    Posted June 9, 2015 4:47pm by Dan Putnam
    Dan Putnam
    5,045 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    3 Answers

  • Phong Pham
    Phong Pham
    8,217 Points

    What's the difference between .click() and .onclick()?

    Posted May 27, 2015 1:20pm by Phong Pham
    Phong Pham
    8,217 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    4 Answers

  • Johnny Lopez
    Johnny Lopez
    4,643 Points

    differences of function declarations?

    Posted March 25, 2015 3:47pm by Johnny Lopez
    Johnny Lopez
    4,643 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    3 Answers

  • Tamás Vörös
    Tamás Vörös
    5,413 Points

    The app.js file is blank when I preview.

    Posted March 23, 2015 1:02am by Tamás Vörös
    Tamás Vörös
    5,413 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • Chuong Nguyen
    Chuong Nguyen
    8,256 Points

    Perform: Event Handling

    Posted March 9, 2015 5:49am by Chuong Nguyen
    Chuong Nguyen
    8,256 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    3 Answers

  • Ethan Rips
    Ethan Rips
    3,258 Points

    I can't get addButton recognized. I get an unexpected "(" message, but there's no error there. Pls advise.

    Posted February 19, 2015 1:42am by Ethan Rips
    Ethan Rips
    3,258 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    4 Answers

  • Chris Collier
    Chris Collier
    17,774 Points

    Can't get onclick event attached to add button/firing correctly

    Posted January 1, 2015 8:40pm by Chris Collier
    Chris Collier
    17,774 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    4 Answers

  • Gesang Lamu
    Gesang Lamu
    2,742 Points

    getElementByTagName give error in my console

    Posted December 7, 2014 11:40pm by Gesang Lamu
    Gesang Lamu
    2,742 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • Tony Brackins
    Tony Brackins
    28,766 Points

    Practicing Event Handler and assigning functions to event handlers.

    Posted December 1, 2014 10:42pm by Tony Brackins
    Tony Brackins
    28,766 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    1 Answer

  • Denis Saidov
    PLUS
    Denis Saidov
    Courses Plus Student 91 Points

    Not showing the log.

    Posted November 19, 2014 1:24pm by Denis Saidov
    Denis Saidov
    Courses Plus Student 91 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    3 Answers

  • David Jarrin
    PLUS
    David Jarrin
    Courses Plus Student 11,182 Points

    Uncaught TypeError: Cannot set property 'onclick' of undefined

    Posted October 23, 2014 7:11pm by David Jarrin
    David Jarrin
    Courses Plus Student 11,182 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    2 Answers

  • Kyle O'Brien
    Kyle O'Brien
    14,066 Points

    Why is my app.js totally blank through the workspace preview?

    Posted September 28, 2014 6:38pm by Kyle O'Brien
    Kyle O'Brien
    14,066 Points
    • JavaScript
    • Interactive Web Pages with JavaScript
    • Selecting Elements and Adding Events with JavaScript
    • Perform: Event Handling

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord