document.getElementById(“xxxxx”).innerHTML isn't working at all?
问题 I am having a problem trying to write a String Variable's value to a specific element in the DOM to the specific div. let's say game=TEN document.getElementById("game").innerHTML=game; doesn't write to: <div id="game"></div> Problem is with the code below I have a script and at the end of that script I can document.write(game) and it works fine, but I can't write it to the div? Maybe I am trying to do this wrong. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3