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
You are probably trying to add css to the style tag. This can be accomplished using:
document.getElementsByTagName('style')[0].innerHTML=""; //some css goes here
You can also use:
document.styleSheets[0].cssText = ""; //some css goes here