I\'m trying to create a dynamic page using external .css pages where the page color will get changed. Below is my code. But when I click the href, I am not gett
href
Use this code
document.getElementsByTagName("head")[0].appendChild('');
it might work, your code may working but due to some another css it won't reflected.