Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to disable rightclick of Web Browser Control
Message
 
À
18/12/2001 15:20:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00595476
Message ID:
00595805
Vues:
40
>>>The HTML loaded can be manipulated. The script can be inserted locally into any page as soon as it's loaded, and then the thus adjusted HTML can be reloaded into the browser control. This would require some coding - locating the position in the page head to insert the script into - but should work even without any temporary disk files.
>>
>>Yes, that would be a way to do it. It would take adding the script and an onmousedown attribute to the BODY tag, as well as reloading after changes as you say. Or does the script take care of that?
>
>Well, it says "document.captureEvents(Event.MOUSEDOWN)", which should mean "mouse down anywhere in the document". Since he's already controlling any HTML before it's shown, he could insert the snippet at the appropriate position and that'd be the solution.

I have try this approach (event) and it does not work.
The rightclick was not cancel at all if you don't place an alert in the script.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform