<html>
<head>
<style>
#myDiv {
border: 1px solid red;
}
</style>
</head>
<body>
<div id="myDiv" style="outline-style:dotted;">This is a div element.</div>
<br>
<button type="button" onclick="myFunction()">Return outline style</button>
<script>
function myFunction() {
alert(document.getElementById("myDiv").style.outlineStyle);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_outlinestyle3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:53 GMT -->
</html>