'clearAttributes()' Example : clearAttributes : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » clearAttributes »

 

'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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» clearAttributes