(c) 2007, DHTML-Menu.com
 
   
   
  Support
  Recent Questions
  Write To Support
 

    How can I disable items in right click menu javascript?

Return to Recent Questions


Q: I want that some right click menu javascript entries may be disabled and clicking on them should produce predefined javascript alert message. Is it possible?


A: To create disabled items you should set "_" symbol in the target parameter of the menuItems.
["item text", "", , , ,"_",]

You can assign a font color for all disabled items using the following right click menu javascript parameter:
var fontColorDisabled = "#AAAAAA";
You can call a javascript code instead of an item link:

["item text", "javascript:alert('Hello World')", , , ,"_",]

That's all.





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. github pages | bootstrap menu | bootstrap 4 templates | criar sites gratis | bootstrap buttons