html disable drag image
<img src="" alt="" draggable="false">
html disable drag image
<img src="" alt="" draggable="false">
how to disable image dragging in html
use ondragstart="return false" for dragging and onselectstart="return false" for selecting
disable image dragging and right click
<!--Place the javascript code at the button of the page -->
<script>
$('img').bind('contextmenu', function(e) {
return false;
});
$('#nearestStaticContainer').on('contextmenu', 'img', function(e){
return false;
});
$('body').on('contextmenu', 'img', function(e){ return false; });
$(function(){
$('body').on('contextmenu', 'img', function(e){
return false;
});
});
const images = document.getElementsByTagName('img');
for (let i = 0; i < images.length; i++) {
images[i].addEventListener('contextmenu', event => event.preventDefault());
}
$('img').bind('contextmenu', function(e){
alert("Action is prohibited");return false;
});
</script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us