by Dr. William C. Jones, Jr. firstname.lastname@example.org version of 9/21/03
One class day of discussion and work on developing a simple webpage should suffice before this material is presented. Students should be able to lay out a text editor window and a browser window side-by-side on the screen, so they follow this process: (a) make a few changes in the HTML file in the editor; (b) click SAVE in the text editor; (c) click REFRESH in the browser window; (d) study the effect of the changes just made. They should be able to copy content from another source (e.g., CTRL/C) and paste it into the text editor window (e.g., CTRL/V). The only HTML they need know for this material is and Who was President in 1977?
onClick=' document.bgColor=choice.value; choice.value="Enter a color" '> and
onClick=' document.fgColor=choice.value; choice.value="Enter a color" '>
Homework 7d: Modify your mine.html webpage to have the reader click one of 3 buttons to get a prompt box that asks the question, and have the answer displayed in a single textfield. Define a function for each question/answer combination.