Question: Using JavaScript. (I'm using Notepad++) There are three paragraph elements on the page. They have the following id's: p2 p3 1. Create three variables, with

Using JavaScript. (I'm using Notepad++)

Using JavaScript. (I'm using Notepad++) There are three paragraph elements on the

There are three paragraph elements on the page. They have the following id's: p2 p3 1. Create three variables, with a descriptive name of your choice, that will be used to hold the three paragraph elements in the web page. You will use these variables in step 2. 2. Use the document.getElementByld method to assign the paragraph elements to your three variables. assign the paragraph with the id p1 to your first variable assign the paragraph with the id p2 to your second variable assign the paragraph with the id p3 to your third variable 3. Use the supplied paragraph string constants: PARA1, PARA2, PARA3 to do the following (Do not change the names, and do not modify the text of these constants): 1. Update the paragraph with the id of p1, using its innerHTML property, with the PARA1 string 2. Update the paragraph with the id of p2, using its innerHTML property, with the PARA2 string 3. Update the paragraph with the id of p3, using its innerHTML property, with the PARA3 string constant. Use the variable you used to hold p1 constant.. Use the variable you used to hold p2. constant. Use the variable you used to hold p3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!