closing sub menu in javascript

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
webshaker
Beginner
Beginner
Posts: 2
Joined: Tue Feb 24, 2004 2:00 pm

closing sub menu in javascript

Post by webshaker »

Hi.

I put some javascript in a sum menu
like this:

url='javascript:display();';

where the function display()
just set the style.display property to '';

the problem is that th sub menu does not close imediately.
How can I close the sub menu where I click on it.

thank's
Etienne
webshaker
Beginner
Beginner
Posts: 2
Joined: Tue Feb 24, 2004 2:00 pm

Re: closing sub menu in javascript

Post by webshaker »

webshaker wrote:where the function display()
just set the style.display property to '';
Ok I'm not sure to have been very clear...
the display() function does not modify the menu.

this function display a hidden form.

I'd like to close the sub menu when the form is displayed.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Its best to post a url so we can see it.

Thanks,
maz
Post Reply