Hi friends i tried blocking keyboard input but it also blocks barcode input
any idea how to proceed with blocking only keyboard input in textbox and
allowing barcode input.
var barcode = document.getElementById('userid');
barcode.addEventListener("keypress", function() { alert("Please use Barcode
Scanner!"); document.getElementById('userid').value = "";}, true);
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/greasemonkey-users/-/Dd54agxyGqEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.