Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js mobile prevent image mousedown

const element = document.getElementById('id')

element.addEventListener('contextmenu', event => event.preventDefault())
 
PREVIOUS NEXT
Tagged: #js #mobile #prevent #image #mousedown
ADD COMMENT
Topic
Name
5+4 =