styleSheet rules : styleSheet « Javascript Objects « JavaScript DHTML






styleSheet rules

    
<html>
<body>
<style>body {background-color: white;}</style>
<button onclick="document.styleSheets(0).rules(0).style.backgroundColor = 'blue';">
Change color
</button>
</body>
</html>

    
      
      








Related examples in the same category

1.StyleSheet: owningElement
2.StyleSheets cssRules
3.Style Sheet 'readOnly'
4.styleSheets 'pseudoClass'
5.stylesSheets.imports parent Style Sheet
6.Style Sheets title
7.Style Sheet type