<html>
<body>
<div id="myDiv" style="line-height:450%;">
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</div>
<button type="button" onclick="myFunction()">Get line height</button>
<script>
function myFunction() {
alert(document.getElementById("myDiv").style.lineHeight);
}
</script>
</body>
</html>