Question: You will create the events using event listeners and all JavaScript should go in script tags for each part (provided for you). Feel free to
You will create the events using event listeners and all JavaScript should go in script tags for each part (provided for you). Feel free to use anonymous functions for the event listeners except for part 7 where you will need to create an additional function. All JavaScript should be in script tags and all events should be declared using event listeners. No in-line JavaScript should be used. In language Javascript please! thank u





Part 1
Display a popup when the "Click Me" button below is clicked. Have it display anything you like.
Part 2
When the "Greet Alert" button is clicked, display a popup that reads Hello [name] where the name is what is entered in the name text box.
Part 3
When the "Greet Modify" button is clicked, "inject" the name entered in the text box into the sentense replacing the [placeholder] with the name.
Part 4
when the image below is clicked, display a popup showing its source URL. Get the URL from the actual image element's src attribute.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
