Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)
The innerHTML property sets or returns the inner HTML of an element.
Example:
document.getElementById('myAnchor').innerHTML="Contoso";
The title property sets or returns the element's advisory title.
Example:
var x=document.getElementsByTagName('body')[0];
document.write("Body title: " + x.title);
Currently there are no comments in this discussion, be the first to comment!