PDA

View Full Version : How to get windows right click like menu



harivenkat116
01-26-2006, 03:50 AM
Hi experts,
I am pretty new to this area and seeking your help for one of requirements. We need windows right click like menu when you left click on any part of the page. I would greatly appreciate any input.

Thanks for your time.
Regards,
Venkat

Twey
01-26-2006, 04:57 PM
Creating a page or feature designed to integrate with any one platform is a bad idea, as people not using that platform will get slightly disoriented - or possibly annoyed, if they happen to be an anti-Windows advocate.
Overriding left-click over the whole page is also a bad idea - this is a very commonly-used feature, and users will get irritated should they click in the window to get focus and have half-a-dozen menus pop up all over the screen.
Nevertheless: capture document.body.onclick ; use an absolutely-positioned div to appear where the mouse is clicked.