Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html change attribute

element.setAttribute(name, value);


var d = document.getElementById("d1"); 
d.setAttribute("align", "center");
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #html #change #attribute
ADD COMMENT
Topic
Name
2+3 =