| Share this post! | Vote this! |
|
Among the many talents of the DOM is its ability to retrieve and modify
attributes inside HTML elements. Using just a small set of methods, you
can intuitively get the width of a DIV, change the src of an image, or
even remove the background image of the document!
The DOM supplies the following 3 methods to tackle HTML attributes:
-getAttribute()
-setAttribute()
-removeAttribute()
These methods can be used on any element that supports attributes. more...
The DOM supplies the following 3 methods to tackle HTML attributes:
-getAttribute()
-setAttribute()
-removeAttribute()
These methods can be used on any element that supports attributes. more...



0 comments:
Post a Comment