taith Posted January 23, 2008 Share Posted January 23, 2008 anyone know how to get the real height/width of something? width/height in px? <span id=test style="border:1px solid black;height:50%;">df</span> <script> var ie4=false; if(document.all) ie4=true; function getObject(id){ if(ie4) return document.all[id]; else return document.getElementById(id); } alert(getObject('test').style.height); </script> Quote Link to comment Share on other sites More sharing options...
taith Posted January 23, 2008 Author Share Posted January 23, 2008 found it! nm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.