# Js help

**URL:** <https://forum.kirupa.com/t/js-help/227738>\
**Category:** programming\
**Created:** [June 1, 2007, 5:21pm UTC](https://forum.kirupa.com/t/js-help/227738 "2007-06-01T17:21:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)\
**Post date:** [June 1, 2007, 5:21pm UTC](https://forum.kirupa.com/t/js-help/227738/1 "2007-06-01T17:21:03Z")

</div>

how can i get (not set) the width or height or a \<div\> element in a document, i tried everthing i know but it was useless.  
the div has an id (“subCat”) and when i used document.getElementByID(“subCat”).style.height, i get nothing ( i tried with an alert box and the box was empty)…  
pls help…
