Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Basics!
You have completed JavaScript Basics!
Preview
Every application that you interact with provides ways for its users to give it information. Learn how to use 'prompt()' to capture dynamic input from your site users.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
alert dialog and printing a message to
the JavaScript console with console.log.
0:00
So far, it's been just you manually
feeding the program input,
0:01
which isn't all too useful.
0:05
Just about every application that
you interact with provides ways for
0:07
it to user to give it information.
0:10
For example, sign up for an account,
log in, create a profile, and so on.
0:12
You can capture dynamic input from your
site users in a number of different ways.
0:17
For instance, when a user fills out a form
field, you can capture what they type.
0:21
Browsers also provide a simple way
of capturing input with JavaScript,
0:25
let's see how it works.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up