<html>
<head>
<script>
function displayResult()
{
var c=document.getElementById("myCol");
alert("The alignment character for the second column is: " + c.ch);
}
</script>
</head>
<body>
<table border="1">
<colgroup>
<col>
<col id="myCol" align="char" char=".">
</colgroup>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100.00</td>
</tr>
<tr>
<td>February</td>
<td>$10.00</td>
</tr>
</table>
<br>
<button type="button" onclick="displayResult()">Get alignment character</button>
<p><b>Note:</b> The functionality of the char attribute is not implemented in any of the major browsers.</p>
</body>
</html>