1

My program is a web based windows app. I found I can drag the links in app to desktop and the system will create a shortcut that will expose my true url, and some bad UE.

Is there any way to prevent this?

1
  • 1
    You can prevent the drag, but it won't stop users from accessing the URL. Fix the problem, don't just hide it.
    – zzzzBov
    Apr 22, 2015 at 14:27

1 Answer 1

1

I think this might be the solution you're looking for:

document.getElementById('notClickable').ondragstart = function() { return false; };

Please let me know if it worked!

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.