Prevent text/image selection...
-
I need to setup a web page so that a user cannot select text AND images. I am currently using onselectstart="return false;" in the body tag and that works fine for text, but images can still be selected. This project is not a general purpose/public access website. I am building a kiosk-style system using HTML and Google Chrome as the browser. The system is designed to be interacted with via touch screen. Currently, if the user slightly moves their finger while touching an icon, the browser selects the icon and highlights it in blue. This isn't visually desirable. Is there a way to prevent this without modifying the Google chrome source code. I'm pretty sure I've seen sites that do something like this, but I can't find one right now and I'm just not sure what is the best method. Thanks
-
I need to setup a web page so that a user cannot select text AND images. I am currently using onselectstart="return false;" in the body tag and that works fine for text, but images can still be selected. This project is not a general purpose/public access website. I am building a kiosk-style system using HTML and Google Chrome as the browser. The system is designed to be interacted with via touch screen. Currently, if the user slightly moves their finger while touching an icon, the browser selects the icon and highlights it in blue. This isn't visually desirable. Is there a way to prevent this without modifying the Google chrome source code. I'm pretty sure I've seen sites that do something like this, but I can't find one right now and I'm just not sure what is the best method. Thanks
Also use ondragstart="return false" It will solve your problem
-
Also use ondragstart="return false" It will solve your problem
Thanks. That worked perfectly.