Log in

View Full Version : Right click menu



davo666
11-11-2007, 10:02 PM
Hi i was wondering if anyone knows how implement a right click menu in javascript and css

thanks

thetestingsite
11-11-2007, 10:05 PM
You may want to look at the following scripts:

http://www.dynamicdrive.com/dynamicindex1/contextmenu.htm
http://www.dhtmlgoodies.com/scripts/context-menu/context-menu.html
http://www.dhtmlgoodies.com/index.html?whichScript=context_menu

Hope this helps.

djr33
11-11-2007, 10:22 PM
Despite how this can in some cases be a nice feature on a website, it doesn't always work and can also get in the way of the default behavior in a browser. Be careful, and good luck as it's tough to make one that will consistently work in all browsers. Having a backup of those commands/links/etc is a good idea.

Twey
11-11-2007, 11:23 PM
And always include an option to disable the menu so the user can access the default context menu.

davo666
11-11-2007, 11:35 PM
hi, i have implemented one, - but!

now at regular intervals the whole script just seizes up and dosen't do ANYTHING - most importantly dosen't run onUnLoad""

what is happeneing???

thanks!

Twey
11-11-2007, 11:39 PM
You did something wrong.

davo666
11-12-2007, 12:20 AM
that normallly isn't good but in this case it is - it means that its fixable - not ie's fault, do you know what...?

Twey
11-12-2007, 01:11 AM
Nope. If you showed us your code, then maybe.