This assignment requires:
-
an HTML file with 5
elements. Those elements should all have unique ID attributes and be visible on the page to start. (Tip: set borders or background colors on empty divs) -
a JS file that has a minimum of 5 functions that perform some DOM manipulation of the 5
elements. All javascript code should be included in the external js file. Your only script tag should be to import the external javascript into your html file. -
An eventListener should be used for every div. You must use the javascript addEventListener method NOT the html attributes; eg. onclick, onload, etc...
-
When you mouse over the object, the color will change and the text will change to say Thank you
-
When you click "click me" an alert will pop up
-
When you change the browser size, the resize event will trigger
-
When you click on text "Click on this text", the text will change
-
When you load a page, an alert will pop up. Not sure if I got this one working correctly