<html>
<body>
<h1>HTML Style Object</h1>
<h2>The border Property</h2>
<div id="myDiv" style="border:thick solid blue;">This is myDiv.</div>
<br>
<button type="button" onclick="myFunction()">Change border</button>
<script>
function myFunction() {
document.getElementById("myDiv").style.border = "thin dotted red";
}
</script>
</body>
</html>