Photo gallery download, image downloading, double rr solutions
I am a selectable text. You can select me.
I am an unselectable text. My text selection is disabled.
Try it Yourself »
If you need to disable text selection for the whole page, apply the user-select to the element.
How to Disable Text Selection with JavaScript¶
Apply the onmousedown and onselectstart Events to the or tags to prevent text selection and copy/cut on your website. It override the default behavior of the browsers.
Example¶
Title of the document
Title of the document
Try it Yourself » The same effect can be achieved by using the jQuery bind() function specifying cut and copy events that are fired when the user cuts or copies a text. Example¶Title of the document
Title of the document
Title of the document
Unselectable text
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
Try it Yourself » How to Disable Copy, Cut, and Paste with JavaScript/jQuery.¶ You can allow text selection, but prevent copy and cut functions using the oncopy, oncut and onpaste event attributes. By adding these attributes into a textbox’s tag, you can disable cut, copy and paste features. The user is left with the option to enter the field manually with these attributes set. Example¶Copy, cut and paste disabled
Try it Yourself » The same effect can be achieved by using the jQuery bind() function specifying cut and copy events that are fired when the user cuts or copies a text. Example¶
Copy and cut disabled
I am a text and you cannot copy or cut me.
Try it Yourself » How to Disable Right-click with JavaScript/jQuery¶ To disable right-click on you page, you need to add the oncontextmenu event and "return false" in the event handler. It will block all the access to the context menu from mouse right-click. Example¶Copy and cut disabled
I am a text and you cannot copy or cut me.
Try it Yourself » Use the bind() jQuery function to disable the right-click feature.This method disables the right-click (context menu) feature on a text field, and also alerts the user with a popup message. Example¶Right-click disabled
For this page the right-click is disabled.





















