Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
#myDiv {
  border: 3px solid red;
  outline: 3px solid blue;
}
</style>
</head>
<body>
<div id="myDiv">This is a div.</div>
<br>
<button type="button" onclick="myFunction()">Change outline</button>
<script>
function myFunction() {
  document.getElementById("myDiv").style.outline = "5px dotted green";
}
</script>
</body>
</html>