Case 11-2
Gerard has inherited some messy code from Sheena,a colleague who had to move onto another project in a hurry before she had a chance to clean it up for him and leave it in better shape.He has some work to do to clean it up.
-Gerard has found another problem.He knows that Sheena was trying to assign an image to a defined location,but this,too,is not working.How should he rewrite the statement so that it will work? Assume that the file to be assigned to the image object source property is hickory-jpg"
A) document.elementID(img) .src="hickory-jpg"
B) document.acquire(img) .src="hickory-jpg"
C) document.get(img) .src="hickory-jpg"
D) document.getElementById(img) .src="hickory-jpg"
Correct Answer:
Verified
Q99: Identify the letter of the choice that
Q100: A(n)_ is a number that designates a
Q101: Identify the letter of the choice that
Q102: Case 11-2
Gerard has inherited some messy code
Q103: Give the general form of the JavaScript
Q105: What are the steps to create a
Q106: Case 11-1
Sebastian wants to create a user-defined
Q107: Identify the letter of the choice that
Q108: Identify the letter of the choice that
Q109: Identify the letter of the choice that
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents