Answers for "html disable image drag"

1

html disable drag image

<img src="" alt="" draggable="false">
Posted by: Guest on December-29-2019
3

how to disable image dragging in html

use ondragstart="return false" for dragging and onselectstart="return false" for selecting
Posted by: Guest on August-01-2020
0

disable drag image css

img {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
}
Posted by: Guest on October-25-2021

Browse Popular Code Answers by Language