var spanName = document.getElementById("spanName"); spanName.title=""; spanName.innerHTML="";