thisMenu.display == "block''

C

Castal

hello,

i am trying to learn javascript.
i found an example of an menu, but there is one thing i do not understand.

in the source it says:

' if(thisMenu.display == "block"){......'

i do not understand what 'block' means.
it is not an variable and there is no definition of 'block' in the script.

can someone help me please,

thanks
 
E

Evertjan.

Castal wrote on 17 feb 2005 in comp.lang.javascript:
' if(thisMenu.display == "block"){......'

I thing it should be:

if(thisMenu.style.display == "block")

The CSS style "display" can be none, block, inline, ''
 
C

Castal

I thing it should be:
if(thisMenu.style.display == "block")

The CSS style "display" can be none, block, inline, ''

thanks for your reaction.
it is all clear to me now.

castal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top