Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:36
How to make item in context menu do nothing?
Poster: Nalsur
Dated: Wednesday August 3 2005 - 18:15:29 BST
I am working on custom context menu.
In file "menu_data.js" am playing with custom context menu description.
Code:
with(milonic=new menuname("contextMenu")){
margin=3;
style=contextStyle;
top="offset=2";
aI("text=Item01;url=javascript:void();");
...
margin=3;
style=contextStyle;
top="offset=2";
aI("text=Item01;url=javascript:void();");
...
When I press on "Item01" from context menu, I just want that nothing happens and context menu disappears.
I tried
Code:
url=javascript:void();
but the menu does not disappear.There is should be a way to do it. But how?
P.S. I ended up with
Code:
url=javascript:history.go();
but this is not neat. The page seems to be refreshed for a moment.
Poster: slackbladder
Dated: Wednesday August 3 2005 - 19:43:45 BST
try this thread:
http://www.milonic.com/forum/viewtopic.php?t=3835