How to write content into an element using innerHTML? 02-05-2017 06:49:12 JAVASCRIPT / Common 0 Bookmark(s) 149 View(s) var showdata = "Demo Content"; document.getElementById("showrecord").innerHTML = showdata; in HTML file