This doesn’t work:
var doesntwork = document.getElementById("doesntwork") doesntwork.title = "line1 asdfa";
But doing it in the html works:
<div title="line1 asdfas" id='works'> </div>
See an example of this here, just hover on the squares:
Is there something I’m missing?
I am not sure if it is a solution you can use, but instead of using you could use n
doesntwork.title = "line1nasdfa";