<html> <body> <table border="10" id="myTable"> <tr> <td>Contents of the cell</td> </tr> </table> <button onclick="myTable.borderColor='mediumblue';">Add color to the border</button> </body> </html>