Yes you can; every browser supports this, including IE9+).
-
The
insertRule()method allows dynamic addition of rules to a stylesheet. -
With
deleteRule(), you can remove existing rules from a stylesheet. -
Rules within a stylesheet can be accessed via the
cssRulesattributes of a stylesheet.