Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add single quote in Innerhtml javascript string


document.getElementById("img").innerHTML = '<img src="/sitepath/' + imgg + '.jpg" width="72" height="44" onclick="alert('hello');" />';

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #add #single #quote #Innerhtml #javascript #string
ADD COMMENT
Topic
Name
4+8 =