Causing a onclick event on a <div> in a table through code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ty

    Causing a onclick event on a <div> in a table through code

    I have an example I have been playing with.

    The page displays with a vertical menu (like an outlook menu) which is
    built from a table. When the page loads the menu is collapsed. If you
    click on on of the menu bars that menu slide open.

    There is a separate java script file.

    When the mouse goes over one of the menu bars it causes a init
    function in the script file to run. If you click on the menu it runs
    another function.

    I want to have one of the menus expanded when the page loads but I
    cannot figure out how to call the click event of the <divtag without
    actually clicking on it.

    Is this possible?

    Thanks for helping a beginner.

    Ty

Working...