Which of the following would retrieve the value displayed in a
element which has id = "football" and store that information in a variable named sport?

a. sport = document.getElementById("football");
b. document.getElementById("football") = sport;
c. sport = document.innerHTML(id = "football");
d. document.write("football");

a. sport = document.getElementById("football");

Computer Science & Information Technology

You might also like to view...

Microsoft Office applications can use ____, a Microsoft product for saving files in the cloud.?

A. ?OneDrive B. ?Backstage C. ?Dock D. ?Time Machine

Computer Science & Information Technology

Android code was released under the Apache license which means the platform is considered which of the following?

A. Proprietary B. Virtual license C. Open source D. Private code

Computer Science & Information Technology