Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Right Clicking problem


Message #1 by gbrown@c... on Wed, 11 Oct 2000 11:51:46 +0100
shooting from the hip...

I think you need to insert return into the call like:
		onmousedown="return mymenu()"

-----Original Message-----
From: gbrown@c... [mailto:gbrown@c...]
Sent: Wednesday, October 11, 2000 3:52 AM
To: javascript
Subject: [javascript] Right Clicking problem


Hi 

I'm trying to bring up a context menu on a href, I've got a script which
does the menu but when I try to put it onto a right mouse click both the
popup and the standard browser menu appear.

I'm using an onmousedown="mymenu()"

mymenu is then 
if(event.button==2){
   menu.create();
   return false;
}
else{
return true
}


Why is this failing?

TIA

Graham

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.

  Return to Index