Martha's COIN 70b Assignments
Assignment 1 - Due April 28
- (121.htm) Create a script where someone can type into the prompt() dialog box either http://www.address.com or just www.address.com. If they do the latter, have JavaScript figure it out and append http:// to the front of what they typed. Display the results (http://www.address.com) as an active hyperlink on a document page.
Hints: String Content Methods & HTML String Methods - Example
- (122.htm) Create a script where you prompt the user for a color (red, blue, or green) and then prompt() for her or him for a sentence. Take the user's input and write out the sentence to the document in the color the user chose. Furthermore, also make the sentence bold.
Hint: String Appearance Methods
- How would you customize the output in 123.htm to include the user's name in both the alert box & the document?
- Extend 124.htm so that if users answer correctly, they have the choice to answer a second question, but if they get the answer wrong give them a second chance to answer the same question again.
RETURN