CD-570 Part VI . Appendixes deleteRule(index) insertRule( rule , index) (Web site designers)
CD-570 Part VI . Appendixes deleteRule(index) insertRule( rule , index) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Use The Evaluator (Chapter 13) with NN6+ to add a style sheet rule to the first styleSheet object of the page. First, make sure the style sheet is enabled by entering the following statement into the top text box: document.styleSheets[0].disabled = false Next, append a style that sets the color of the TEXTAREA element: document.styleSheets[0].insertRule( TEXTAREA {color:red} , document.styleSheets[0].cssRules.length) Enter any valid object (such as document.body) into the bottom text box to see how the style has been applied to the TEXTAREA element on the page. Now remove the style, using the index of the last item of the rules collection as the index: document.styleSheets[0].deleteRule(document.styleSheets[0].cssRules.length - 1) The first release of NN6 processes most, but not all, of the internal actions in response to the deleteRule() method. The method returns no value, so the Results box after evaluating the deleteRule()example statement correctly reports undefined. At the same time, the method has genuinely removed the rule from the styleSheet object (as proven by inspecting the lengthproperty of the document.styleSheets[0].cssRules array). But the browser does not refresh the page display to reflect the removal of the rule. styleSheetObject.deleteRule()
You want to have a cheap webhost for your apache application, then check apache web hosting services.