'removeRule()' Example : removeRule « Javascript Methods « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Methods » 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 id="myB" onclick="function1();" class="myClass">Remove rule</button>
</body>
</html>

    
      
      
Related examples in the same category
1.'removeRule()' Syntax, Parameters and Note
2.'removeRule()' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.