Как вариант:
<script type="text/javascript">
window.onload = function(){
var div = document.getElementById('div'),
computed = parseInt(window.getComputedStyle ? getComputedStyle(div, null).height : div.currentStyle.height);
div.style.height = '';
alert(computed < div.offsetHeight ? 'больше!' : 'меньше?');
};
</script>
<div id="div" style="
position: relative;
white-space: pre-wrap; /* W3C */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -o-pre-wrap; /* Opera */
word-wrap: break-word; /* IE5.5+ */
width: 50px;
height: 50px;">
******************************************
</div>