Assignment 1: Exploring Events
Description
JavaScript allows a programmer to add functionality to a web page making them interactive and engaging. Event driven programming is a type of programming where the programmer assigns code to be execute when a user performs some action.
Task
Complete ExploringEvents.
Questions
1) What are events as it pertains to write JavaScript? onclick, onload, onchange, onmouseover, onmouseout,
2) What event would you use to respond to the user pressing a key? Onkeydown
Exit Homework
Write the code for the following scenario.
Create a div with your first and last name.
When the user double clicks on the div display "Ouch"
<div> Benson Huang </div>