changing the text content of a span in javascript code example Example: change span value javascript document.getElementById("serverTime").innerHTML = ...;