<html>
<head>
<style>
#myDiv {
border: 1px solid red;
outline: dotted green;
}
</style>
</head>
<body>
<div id="myDiv" style="outline-width:10px;">This is a div element.</div>
<br>
<button type="button" onclick="myFunction()">Return outline width</button>
<script>
function myFunction() {
alert(document.getElementById("myDiv").style.outlineWidth);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_outlinewidth3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:06:24 GMT -->
</html>