Question: Click here to change the image and hyperlink Set Attribute Exercise 1) In the function myFunction(), which will be called when you click on the
Set Attribute Exercise
1) In the function "myFunction()", which will be called when you click on the button, use the "document.getElementsByTagName()" method together with the "setAttribute" method for changing the "href" value of the hyperlink as "https://www.nba.com/lakers" and the "src" value of the image as "bryant.jpg".
In the function "myFunction()", which will be called when you click on the button, use the "document.getElementsByTagName()" method together with the "setAttribute" method for changing the "href" value of the hyperlink as "https://www.nba.com/lakers" and the "src" value of the image as "bryant.jpg".
Could you please edit as requested in the question this code? (I have the pictures mentioned in the code and I need to be corrected edited.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
