How To Disable Text Selection, Copy/Paste, And Right-click In WordPress - WordPress Download Manager
Tue May 09 2023 01:12:19 GMT+0000 (Coordinated Universal Time)
Saved by
@aliqbal
<script>
jQuery(document).ready(function(){
function disableselect(e) {
return false;
};
function reEnable() {
return true;
};
document.onselectstart = new Function ("return false")
if (window.sidebar) {
document.onmousedown = disableselect
document.onclick = reEnable
};
jQuery(document).bind("contextmenu",function(e){
return false;
});
jQuery(document).bind("copy",function(e){
return false;
});
jQuery(document).bind("paste",function(e){
return false;
});
jQuery(document).bind("select",function(e){
return false;
});
});
</script>
content_copyCOPY
https://www.wpdownloadmanager.com/how-to-disable-text-selection-in-wordpress/
Comments