Sets the value of the html attribute.
nullobj.setAttribute(name, value);
name (string) - attribute name
value (string or function) - attribute value
obj.setAttribute("title", "some text");
The value parameter can be a function, which will be called each time the html is generated (in toString() or refresh() methods), for example
obj.setAttribute("value", function(){
return this.getControlProperty("value");
});
getAttribute() method