Which of the following will correctly modify the value of an X/HTML element’s attribute within the DOM?

Which of the following will correctly modify the value of an X/HTML element’s attribute within the DOM?

Which of the following will correctly modify the value of an X/HTML element’s attribute within the DOM?

A.
getAttribute(NewValue, AttributeName)

B.
getAttribute(AttributeName, NewValue)

C.
setAttribute(NewValue, AttributeName)

D.
setAttribute(AttributeName, NewValue)



Leave a Reply 0

Your email address will not be published. Required fields are marked *