Client-Side Web Development - Graded Assignment #7

This assignment must be completed with Javascript constructs covered in the module.
The HTML and Javascript file should not be modified in any way except as specified below.

  1. Use VS Code to open files index.html and main.js, in which you completed the previous assignments.
  2. In the Javascript file, write some code so that whenever a button on the HTML page is entered with a mouse, that button turns red, reverting back to its original colour after the mouse leaves. You must not modify the HTML file for this assignment.
  3. TIP: The events associated with the mouse entering and leaving an element are mouseenter and mouseleave.

 

For a video demonstrating the required behaviour click here.

For information on submission deadline and grading of this assignment see the the Schedule and Notes page, below the table.