shut off click hold menu

T

thechasboi

Guest
Is there a way to shut the click and hold menu off on the mac browsers. The menu you get when you click and hold anywhere on the webpage.

Thanks for the reply.
 
Joined
Jun 6, 2006
Messages
1,153
Reaction score
94
Points
48
Your Mac's Specs
MacBook 2.0GHz White, 512MB RAM, 60GB HDD
Not that I'm aware of, other than by not clicking and holding. Is there a particular reason you want to disable it?
 
Joined
Feb 2, 2004
Messages
12,455
Reaction score
604
Points
113
Location
PA
Your Mac's Specs
MacBook
Nope. That is just how the OS works, it can't be "turned off".
:black:
 
OP
T

thechasboi

Guest
D3v1L80Y & cazabam

Thanks fro the answers. I did get this answer from some one else on another forum. oncontextmenu="return false" What exactly does that do. Sorry new at the Mac javascript coding. It seems to disabpe the click and hold menu which helps but does not entirely solves the problem.

Thanks again for the replys
 
Joined
Jun 6, 2006
Messages
1,153
Reaction score
94
Points
48
Your Mac's Specs
MacBook 2.0GHz White, 512MB RAM, 60GB HDD
I think I've just realised something; you are creating a web page, and you don't want the 'click and hold' menu to appear. It's not that you are a mac user who wants to turn it off, but a web author who doesn't want others to use it.

Assuming I'm right, then the answer is much simpler. The 'click and hold' menu is exactly the same as the right click menu in Windows and Linux (and OS X if you have a 2 button mouse). It's proper name is the 'context menu', which is why returning false to context menu requests causes it to be disabled.

There is no 'Mac Javascript', just Javascript - it's the same on all browsers and all platforms (with the notable exception of IE, although it's getting a little more standards compliant). Disabling the context menu on the mac will disable it for everyone else too.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top