A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics. Please enter your email address below and click Subscribe.
Jun 16, 2011 · alert("We're sorry. Right-Click is not available"); return false;}); But that doesn’t seem to work completely. Sometimes it’ll still let me click on the first try, but then the following tries it shows the alert. I don’t want this to be a topic about why you shouldn’t disable right-clicking. I know
If button specific styling is needed, the following CSS class names can be used for overrides or as keys for the classes option: ui-button : The DOM element that represents the button. This element will additionally have the ui-button-icon-only class, depending on the showLabel and icon options.
Solution 3: Disable right click, drags, and text selection by using HTML. You can easily use HTML attributes also, to disable drags, right clicks and text selection.HTML have some proper attributes to help you in this situation, the only drawback is that these attributes now only work on Internet Explorer.But still if you want to add this in your code, let us explain this to you.