JavaScript · Lesson 4 of 4
Add interaction to your page
Bring your greeting, counter, and introduction toggle together on your personal page. Review the handlers you built, or write them if you started here.
Your task
Make all three handlers work on your page: your own greeting, a counter increase, and showing or hiding your introduction. Refine the messages and test each button more than once.
Each new lesson builds on your personal page. Your saved lesson draft opens when you return.
The image stays in your browser. Choose it, then use its filename when you add the image to your code.
Edit your project HTML and CSS
Your page
Checks use your current code. Try the page yourself too.
Your feedback
Do all three buttons work, and can you explain the code? Download your complete page, then continue to the next stage.
Next: Modern InterfacesI need help
Start with one button. The greeting uses greet and message, the counter uses count and total, and the introduction uses toggle and details. Revisit earlier lessons to check each handler.
Save the page to your computer
If the download does not start, copy the complete code below into a text file named index.html and save it as UTF-8.