======= >>>>>>> faa6aaf237eae4895460e74eebaa130feb27079a HOME ======= HOME >>>>>>> faa6aaf237eae4895460e74eebaa130feb27079a

LO #1

Given a span inside of a button, add an event listener to the button with will display the click count.




LO #2

Given a checkbox and another HTML element, write JavaScript that can make the element appear and hide on the page.

Pizza Toppings




LO #3

Write JavaScript that will change the background color of the page five seconds after a page loads unless the value for an input field is equal to "STOP".




LO #4

Write JavaScript that changes the background color of a textbox to when the caret is in the textbox and turns it back to its normal color when focus is elsewhere.




LO #5

Given an HTML page that includes a form with two password fields, write JavaScript that subscribes to the forms submission event and cancels it if the values in the two password fields differ.




LO #6

Given an HTML page that includes a div styled as a square with a red background, write JavaScript that allows a user to drag the square around the screen

drop zone



LO #7

Given an HTML page that has 300 DIVs, create one click event subscription that will print the id of the element clicked on to the console.

1
2
3
4
5
6
7
8
9
10



LO #8

The Bubbling Principle means that when an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up on other ancestors.