WEB javascript help?

Discussion in 'OT Technology' started by maxgohan, Mar 18, 2009.

  1. maxgohan

    maxgohan OT Supporter

    May 1, 2004
    Likes Received:
    btown, toronto
    ok i used this expandable menu bar from this site(example on the site)

    anyways, i want an alert window with the height of the menu bar.

    i'm using this function

    alert( document.getElementById("unorderedlist").clientHeight );
    is the function that makes the alert window.

    now this is working so far but what is happening is that when i click on a link to expand/collapse the menu it will return the height of the menu BEFORE it is expanded or collapsed.

    is there a way i can make it so when the onclick function happens, it expands/collapses the menu and THEN calcualtes the height.....

    hopefully this isn't too hard to understand :hsd:

Share This Page