add single quote in Innerhtml javascript string
document.getElementById("img").innerHTML = '<img src="/sitepath/' + imgg + '.jpg" width="72" height="44" onclick="alert(\'hello\');" />';
Are there any code examples left?
New code examples in category Javascript