Hi I would like to change a css rule,with javascript this is what i have so far??
body{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
/* [disabled]line-height: 17px; */
color: #ffffff;
background: url(images/bg.jpg);
<script>
function changeStyle()
{
var mySheet = document.styleSheets[0].rules || document.styleSheets[0].cssRule;
for(var i=0; i<mySheet.length;i++)
{
if(mySheet[i].selectorText == "body")
targetRule = mySheet[i];
targetRule= "background:#000000";
}
</script>
}
Thanks in advance!