• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1246
  • Last Modified:

Disable Drag & Drop for images on Safari (Javascript)

Hi,
I have tried to stop highligting on the homepage, and it works fine, but not on photos in Safari.
I use this code:

<body onselectstart="return false" onload="document.body.style.MozUserSelect='none'">

Thanks
0
Kasketten
Asked:
Kasketten
1 Solution
 
David H.H.LeeCommented:
Hi Kasketten,
Try onDragStart() event.
eg:
<body onDragStart="return false" onselectstart="return false" onload="document.body.style.MozUserSelect='none'">
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now