Getting and Setting Attributes

We can get and set the attributes for a node in this case an image's height and width attributes.

The Attributes button displays the image's src , width and height by using

document.getElementById('xyz').getAttribute("src");
document.getElementById('xyz').getAttribute("width")
document.getElementById('xyz').getAttribute("height")

The Grow and Shrink buttons demonstrates that changing attributes within a timing loop can create animations.