<html>
<body>
<table id="myTable" border="1" style="border-spacing:10px;">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$150</td>
</tr>
</table>
<br>
<button type="button" onclick="myFunction()">Return the space between the cells in the table</button>
<script>
function myFunction() {
alert(document.getElementById("myTable").style.borderSpacing);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_borderspacing2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:38 GMT -->
</html>