JavaScript DHTML/Node Operation/clearAttributes — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 10:02, 26 мая 2010

"clearAttributes()" Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        document.all.myP.clearAttributes(); 
    } 
</script>
<p id="myP" style="color:red">This text has the style and id attributes.</p>
<button onclick="function1();">Clear attributes()</button>
</body>
</html>