How to make item in context menu do nothing?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Nalsur
Beginner
Beginner
Posts: 4
Joined: Mon Aug 01, 2005 4:08 pm

How to make item in context menu do nothing?

Post by Nalsur »

I am working on custom context menu.

In file "menu_data.js" am playing with custom context menu description.

Code: Select all

with(milonic=new menuname("contextMenu")){
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: Select all

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: Select all

url=javascript:history.go();
but this is not neat. The page seems to be refreshed for a moment.
slackbladder
Super Advanced
Super Advanced
Posts: 72
Joined: Fri Jul 01, 2005 3:04 pm

Post by slackbladder »

try this thread:

viewtopic.php?t=3835
Nalsur
Beginner
Beginner
Posts: 4
Joined: Mon Aug 01, 2005 4:08 pm

Post by Nalsur »

Thank you.
Post Reply