nerdexam
Microsoft

98-375 · Question #61

98-375 Question #61: Real Exam Question with Answer & Explanation

The correct answer is A. innerHTML C. title. A: The innerHTML property sets or returns the inner HTML of an element. document.getElementById('myAnchor').innerHTML="Contoso"; C: The title property sets or returns the element's advisory title. var x=document.getElementsByTagName('body')[0];document.write("Body title: " + x.ti

Question

Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)

Options

  • AinnerHTML
  • BnodeType
  • Ctitle
  • DnodeValue

Explanation

A: The innerHTML property sets or returns the inner HTML of an element. document.getElementById('myAnchor').innerHTML="Contoso"; C: The title property sets or returns the element's advisory title. var x=document.getElementsByTagName('body')[0];document.write("Body title: " + x.title);

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice