Which is the correct way to reference the href attribute of the element with the id value homeLink ?
A) document.getElementById("homeLink") .style.href
B) document.getElementById("homeLink") .attr.href
C) document.getElementById("homeLink") .attr("href")
D) document.getElementById("homeLink") .href
Correct Answer:
Verified
Q7: Which method does NOT return a node
Q8: When you open a new web browser
Q9: The _ method repeatedly executes the same
Q10: Internet Explorer 8 does not support the
Q11: The objects in the BOM for any
Q13: Which is the correct way to reference
Q14: The top-level object in the browser object
Q15: Which method returns all h1 elements in
Q16: The _ object is used to obtain
Q17: The _ method is used in JavaScript
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