1. The first action prompts the user for their name. There is default text already populated. once they enter the teir name or some text and click OK they will greeted by a string that says "Hi there" cancatenated with the string they entered at the prompt.
2. The second action changes the image displayed when the mouse is over the object (onmouseover) and then changes to the original image when you move your mouse away from this object (onmouseout).
3. The third actions uses two functions. A function is called when the user click on ok to convert the text entered to upper case characters. If no text is entered an alert box tells the user that text needs to be entered. Once text is entered and the Ok button is clicked the funtion returns the upper case characters of that text (toUpperCase()).
4. The fourth action illustrates how check boxes can be added to a form and a function is called once the user click on the selection button. All check boxes are checked to see if they have been checked off ( if (beverage[i].checked)). If a particular check box has been checked off the value associated with that check box is concatenated to the output string. After each check box has been checked the output string is displayed.
5. The last action utilizes an attribute of the file (document.lastModifie) to display the date when this document was last modified.
|
This web page is an assignment in the course ISP 361: Web Development in the School of Information Science at the University of Albany and is not an actual ompany. Page Author: Anne Shelton
|