<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> 
<p id="myP1" style="color:red">This text has the style and id1 attributes.</p> 
<button onclick="function1();">Clear attributes()</button> 
</body> 
</html> 
 
     
       
      
  |