Does anyone know a trick to get the width of a layer when its CSS width attribute is not set? The code below will return a value of null since the CSS attributes are not set. Does anyone know of a way to get the layer's width in this case?
Code:
<div id="someLayer" ></div>
<script>
alert('Width: 'document.getElementById('someLayer').style.width):
</script>
Comment