since many days, I'm stuck with if I want to add <br>
with elem.innerHTML += '<br>'
or document.createElement('br')
, the whole site crashes.
But if I am doing this with a normal letter, it works just fine.
function setSpace(elem){
if((elem.clientHeight-49)/16 >= 1){
for(var i=0; i <= (elem.clientHeight-49)/16; i++){
elem.innerHTML += '<br>';
}
}
}
How can I solve this problem?