[Javascript] right click base popup

FERON Matthieu FERONMA at cic-i.com
Tue Dec 11 10:29:35 CST 2001


thanks a lot, I'll try this immediately !!!

-----Message d'origine-----
De : Dan Costea [mailto:costea.dan at ssi-schaefer.ro]
Envoyé : mardi 11 décembre 2001 17:25
À : javascript at LaTech.edu
Objet : Re: [Javascript] right click base popup


If you want to get rid of the context menu, try this:
 
<body onContextMenu="return false">
 
Then you can use events like onClick, onMouseDown, onMouseUp to call your
own functions (to open a popup, a div or whatever you need to).
 
If you need the context menu in some cases, try:
 
<body onContextMenu="return event.ctrlKey">
 
then you will have the context menu only if you have ctrl key pressed (this
might be useful sometime).
 

----- Original Message ----- 
From: FERON  <mailto:FERONMA at cic-i.com> Matthieu 
To: 'javascript at LaTech.edu' <mailto:'javascript at LaTech.edu'>  
Sent: 11 December, 2001 5:49 PM
Subject: [Javascript] right click base popup


when you right click on on window or an image or somethin you 've got a
default popup with 
'open in new window' etc etc... 
So, I would really like to get rid of this because I need the right click to
do something. 
I tried to catch the onmouseup event but it seems that it doesn't care at
all. 
Please HEEEEELP !!   ;-)) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20011211/4f2e4cd7/attachment.htm>


More information about the Javascript mailing list