'removeRule()' Example : removeRule : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » removeRule »

 

'removeRule()' Example



    
<html>
<body>
<style>.myClass {background-color:red; font-decoration:bold;}</style>
<script language="JavaScript">
    function function1() {
        document.styleSheets[0].removeRule(0);
    }
</script>
<button onclick="function1();" class="myClass">Remove rule</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» removeRule