New coding words
JavaScriptbuttoneventclickalert
Aim: Use a small piece of JavaScript to make buttons respond to clicks.
JavaScriptbuttoneventclickalertThis code creates a button that runs a JavaScript function and displays a friendly message box when selected.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to see your webpage here.
This code creates three styled buttons that each run a different JavaScript function and display a different compliment.
Select Run my code to see your webpage here.
Complete these activities in the mini-project editor above. After each change, select Run my code to check your webpage.
Select Download my work and save the file as week_9_compliment_buttons.zip. Extract this .zip file to keep your HTML, CSS and JavaScript files together, then open index.html in a browser to view your webpage.

Your answers are checked in this browser and are not submitted.
Finished Web Adventures Week 9?
Your completion and mood are saved only in this browser.