How can I disable items in java drop down menu?
Return to Recent Questions
Q:
Some menu entries may be disabled and clicking on them
should produce predefined javascript alert message?
A:
To create disabled items you should set "_" symbol in the target
parameter of the menuItems.
If the target is "_" the item is disabled.
You can assign a font color for all disabled items using the following menu parameter:
var fontColorDisabled = "#AAAAAA";
You can write a javascript code instead of an item link:
["item text", "javascript:alert('Hello World')", , , ,"_",]
That's all.
Return to Recent Questions
|