<script language="javascript">
function showAtt()
{
var row = document.all("tbl").rows[0]; //second row
var width = row.getAttribute("width");
var height = row.getAttribute("height");
if (width)
alert("we have a width attribute, its value:" + width);
else
alert("we don't have a width attribute");
if (height)
alert("we have a height attribute, its value::" + height);
else
alert("we don't have a height attribute");
}
</script>