Weeks 6 & 7
Reminder of Various access issues
Using the input with simple scripts Experiment on your own!
Responding to simple events
Forms, buttons, alerts
Assignment #5 -- due Monday March 20th -- take text from two inputs inside a form and when the user clicks a button, concatenate the two strings (that the user has entered), placing the result in a third input. Make your page look (as much as you can) as follows:
Notes on assignment 5: The assignment involves the following things:
making the page resemble the picture above (Hint: reread the material on HTML tables since there are relevant examples in there)
figuring out how to concatenate two strings; (Hint if a="artichoke" and b="banana" than alert(a+b) produces "artichokebanana".)
example 1 This uses a button (within a form) to redirect the page to another URL.
example 2 This places two links on a page but overrides the action associated with one of them.
example3 This changes which of two images is displayed based on mouse clicks (down and up)
example4 This takes text typed by the user and builds a new sentence inside a new window.
example5 This example adds numbers together.