WDV221 Intro Javascript

Introduction to Javascript - In Class Exercises


Please complete the following exercises on this page. When complete post the page to your WDV221 folder on the server. Make a link in your WDV221 Intro Javascript page for this assignment. Contact your instructor and demonstrate that you have completed the assignment.

Using Blackboard complete the In Class Exercise Assignment. Download your Homework project and being working on it with your remaining time.


For each exercise use a comment line to put the Exercise number within the script. Also place a short description of what the script is doing.

1. Create a runtime script that will process an alert( ). The alert should display your name.

2. Create a runtime script that will process a document.write( ). The script should write your name below as an H1 element.

3. Create a runtime script that will process a document.write( ). The script should write a short description of what you have learned today below this line. The content should be within a p element.

4. Use the button element on this page. Use the onclick event to display the name of the course in an alert function when the button is clicked.

5. Place an onclick event handler in this paragraph. When you click the paragraph use the document.write to output <h3>What just happened?</h3>.