Hi,
I have a page where I want to change my CSS using JavaScript.
I attached an external CSS and read it out using
var CSS = document.styleSheets[0];
Now I can do everything I want with it (using getelementByID, AddRule etc. (I do it by using a button click and an input field)
But as soon as I refresh my changes are lost and I can't find a save function in the StyleSheet object.
Any help on this problem would be highly apreciated.
Johannes
I have a page where I want to change my CSS using JavaScript.
I attached an external CSS and read it out using
var CSS = document.styleSheets[0];
Now I can do everything I want with it (using getelementByID, AddRule etc. (I do it by using a button click and an input field)
But as soon as I refresh my changes are lost and I can't find a save function in the StyleSheet object.
Any help on this problem would be highly apreciated.
Johannes