I have a piece of JavaScript that is supposed to update a in my HTML:
var StringContent = ({
\"a\": \'Some String a\',
\"b\": \'Some string b\',
for innerHTML you need '
'
document.getElementById("overlaycontent").innerHTML = (
StringContent.a + '
' +
StringContent.b + '
' +
StringContent.c
)
but for an alert you can use : String.fromCharCode(10) instead of '\n'
alert(
StringContent.a + String.fromCharCode(10) +
StringContent.b + String.fromCharCode(10) +
StringContent.c
)