JavaScript DHTML/Node Operation/removeRule — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:25, 26 мая 2010
"removeRule()" Example
<source lang="html4strict">
<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>
</source>