Click to See Complete Forum and Search --> : Rightclick on hyperlink detection...
ppera
01-28-2003, 03:44 PM
I have page for downloads with right click context menu in Javascript. But I want now that when visitor right clicks on hyperlink that disable context menu, and display standard browsers menu - for example to allow usage of some download manager.
I assume that it could be done with usage of variable which will take specific value when cursor is over hyperlink.
sciguyryan
08-11-2003, 05:54 AM
hi,
are you saying that you want some of the right click functions to be disabled but not others?
ppera
08-11-2003, 06:21 AM
Hi!
Long. long time ago was it...
I wanted to allow file download with installed download manager, what is usually forced with rightclick on hyperlink in browser and selecting from menu. When some other rightclick context menu is installed on page, it's not available.
Anyway, I solved it differently - rightclick now activates both: standard and javascript menus. Just needed to add some simple coordinate calc. to avoid overlapping of both menus.
Unfortunatelly, Javascript mouse click detection is far feom perfect (at least in Windows).
Khalid Ali
08-11-2003, 08:19 AM
Originally posted by ppera
Hi!
Unfortunatelly, Javascript mouse click detection is far feom perfect (at least in Windows).
What makes you say that????
ppera
08-11-2003, 02:31 PM
For example: double click will be detected often as right click. While pressing ALT or CTL it is confused sometimes etc.
I saw in time when bothered with it lot of WEB pages where it is described in details. There was even one, where is described how to fool disabled right click easy.
sciguyryan
08-11-2003, 02:56 PM
hi,
yes, your absplutley right but, unfortunatley our option are limited in tht respect!