<html>
<body>
<button type="button" onclick="myFunction()">Return the value of the clip property</button><br>
<img id="myImg" style="position:absolute;clip:rect(0px,60px,200px,0px);" src="w3javascript.gif" width="100" height="132">
<script>
function myFunction() {
alert(document.getElementById("myImg").style.clip);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_clip2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:38 GMT -->
</html>