Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Callback Functions in JavaScript Callbacks and the DOM Using Callbacks on Text Inputs

Kasoma Ibrahim
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Kasoma Ibrahim
Full Stack JavaScript Techdegree Graduate 25,206 Points

Focus did not work on the Form element but on individual elements

Hello. I tried to use the Form to trigger click events on its children but the Focus property did not work, is this a default behaviour of form elements, i tried using the click event which worked well

1 Answer

I'm not certain, but I don't think that forms get focus. Individual elements within the form get focus, but I don't think it applies to the form itself.