I've got quiz application. Where robot ask different questions in chat, this questions belong to different areas of knowledges. User that answered question first, receive points. The problem is, that some users googling answers. I want somehow prevent users from coping question from web page and googling answers.
I'm not even sure, that this is possible, anyway probably someone got any ideas
If, for some reason, you would like to prevent users from copying and pasting text from your web pages through Ctrl-C Ctrl-V, or using the mouse, jQuery can help. $('body'). bind('copy paste cut drag drop', function (e) { e.
You can use jquery for this: $('body'). bind('copy paste',function(e) { e. preventDefault(); return false; });
You can allow text selection, but prevent copy and cut functions using the oncopy, oncut and onpaste event attributes. By adding these attributes into a textbox's <input> tag, you can disable cut, copy and paste features.
-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; Disallow them from being able to answer when the window's onBlur event is fired.
Here: How to disable text selection highlighting using CSS?
-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none;
Disallow them from being able to answer when the window's onBlur event is fired. They can still use other devices, but they won't be able to cheat on the same computer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With