I want to change the style tag after generating contents. How can I add style to the style tag? I tried using:
document.getElementById(\'style\').appendChil
style is a property. After you getElementById() you can change its style.
style
getElementById()
HTML:
...
JS:
var div = document.getElementById('myDiv') div.style.background = 'red'; div.style.margin = "10px"; div.style.fontSize = "12px";
etc.