Link to home
Start Free TrialLog in
Avatar of dda
ddaFlag for Russian Federation

asked on

Disable page text selection and drag-and-drop in Mozilla Firefox

Dear Experts,

I need to disable drag-and-drop operations in mozilla firefox. The following works in IE:

<body ondragstart="return false" onselectstart="return false">

Is there a way to achive the same result in mozilla (I'm on linux)?
ASKER CERTIFIED SOLUTION
Avatar of suramsureshbabu
suramsureshbabu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dda

ASKER

suramsureshbabu,thanks for the idea. It works, but I'd like to set this property for the whole document. And if I set <body onmousedown="return false"> I can't put cursor into input field, for example...
SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dda

ASKER

Thanks all!