Answers for "js add content to script tag"

1

js add content to script tag

script.text = "function DrawIt(){canvas1.fillRect(1,2,30,40)}"

// Means
<script>
function DrawIt(){canvas1.fillRect(1,2,30,40)}
</script>
Posted by: Guest on October-28-2021
0

js add content

document.getElementById("parentID").appendChild(/*..your content created using DOM methods..*/)
Posted by: Guest on January-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language