I need to create a form that has some interaction with the user. The form should have these four elements:
HTML file: | Displayed by browser: |
---|---|
<body>
<h3>A form by Assignment</h3> <form> <h5>What is your name?</h5> <input type="text" SIZE="30" onFocus="window.status='Put your name in here';"> <br /><br /><hr /> <h5>Which flavor do you prefer?</h5> <input type="checkbox" name="Chocolate" value="Flavor" onFocus="window.status='You have chosen ' +name;"> Chocolate <input type="checkbox" name="Vanilla" value="Flavor" onFocus="window.status='You have chosen ' +name;"> Vanilla <br /><br /> <input type="submit" onClick="alert('Thank you!');"> </form> </body> |
A form by Assignment |