JavaScript
Review the following examples, being sure to view the page source and to examine the integration of HTML and JavaScript:
- Get System Information
- HTML Form: onsubmit event
- Input Validation
- Input Validation using Regular Expressions
To view the page source, right click the web page and click “View Page Source” (or similar) in the context sensitive menu. If you want to examine a particular element, you can right click on the element and click “Inspect” (or similar) in the context sensitive menu.
Create a web page that solicits the user’s name, age, and favorite color. Include a “Check” button that notifies the user if any field is blank and modifies any blank fields’ labels to be red.