document.getelementbyid( demo ).innerhtml mdn code example Example: getelementbyid document.getElementById("someid");