JavaScript DHTML/Node Operation/clearAttributes

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

"clearAttributes()" Example

   <source lang="html4strict">
   

<html> <body> <script language="JavaScript">

   function function1() {
       document.all.myP.clearAttributes(); 
   } 

</script>

This text has the style and id attributes.

<button onclick="function1();">Clear attributes()</button> </body> </html>


     </source>