-
Set Textbox
-
form with textbox and button
-
click button to set value in textbox
-
Copy Textbox
-
form with 2 textboxes and button
-
click button to copy value from one
textbox to the other
-
Check Textbox
-
example above
-
Report the value of textbox in an alert box
-
Check Textbox 2
-
example above
-
quotes around string
-
Inc/Dec
-
textbox and 3 buttons
-
Zero button - initialize to 0
-
Inc button - add 1 to value in box
-
Dec button - subtract 1 from value in box
-
Note - value must be converted to integer for +
-
Write
-
text written to page with document.write()
-
Days 1
-
use Date object
-
compute days until final
-
write to page
-
Days 2
-
above example
-
write today's date to dialog box
-
write days until final in dialog box
-
display inspirational message
-
Background 1
-
change background color
-
document.bgcolor
-
input from prompt box
-
Background 2
-
loop to change colors many times
-
Max 1
-
max of 2 numbers
-
output to page
-
Max N
-
above example
-
max of N numbers
-
N is user input