Resources
-
//OUTPUT:
alert()
,.innerHTML
, andconsole.log()
- //INPUT: Buttons
The assignment
- Use HTML to create a whole bunch of buttons
-
Include functions that will show that you know how to use
a selection of the following:
alert()
console.log()
.innerHTML
to insert code inside something.innerHTML
to replace code that already exists
-
Use
onclick
javascript to make the buttons able to trigger functions
Saving your work
Use Save as...
to save the
empty template as
"2.01S-HelloJavascript-LastName.html
"
in your Computer Programming 12 directory.
Extend and expand
Use CSS to style your buttons!
Make a keyboard of buttons! Buttons galore!
Coding secret:
onclick
allows almost anything to become a button.
Try turning sentences, or words, or pictures into clickable objects.