var text = document.getElementById('textBoard'); var cloneText = document.getElementById('yadiv'); text.onkeyup = function() { cloneText.innerHTML = this.innerHTML; }