Question: //--------// // Events // //--------// console.log(Events); // 1. Change the link (the tag) in the HTML body below such that a hello // message is
//--------// // Events // //--------// console.log("Events");
// 1. Change the link (the tag) in the HTML body below such that a hello // message is displayed on a click event.
//--------------// // Input Fields // //--------------// console.log("Input Fields");
// 1. Change the background color to red for the input text field (the // tag) in the HTML body when obtaining the focus and change it back to // white when the focus is lost.
// 2. Read the content of the input field (the tag) when the focus is // lost and alert it to the user.
//------------// // Paragraphs // //------------// console.log("Paragraphs");
// 1. Write JavaScript code that changes the text in the paragraph below // (the
tag) from "Hello World!" to "Goodbye World!".
//--------// // Images // //--------// console.log("Images");
// 1. Add an image to the HTML body (use the tag). Make it disappear when // someone clicks on it.
//--------// // Styles // //--------// console.log("Styles");
// 1. Use the style of div1 and div2 to swap the colors of the divs.
function swapColors() { // TODO }
See console! Click here for a greeting!
Hello World!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
