<table id="tbl">
<tr><td>hello</td><td>world</td></tr>
<tr width='95%' height='20'><td>hello</td><td>world</td></tr>
<tr width='95%' height='20'><td>hello</td><td>world</td></tr>
</table>
<input type="button" value="show Att" onclick="showAtt()"><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>