Hi,
I'd need some way to prevent users from selecting text in a web page. I'm only interested in Mozilla Firefox family browsers.
I came with this javascript snippet so far:
onmousedown = "return false;"
This works, but it has the problem of disabling inputs too, so the user won't be able to enter them with his pointer.
Does anybody know of a better way to avoid text selection in the whole page while still keeping the other elements working?
Thanks a lot
I'd need some way to prevent users from selecting text in a web page. I'm only interested in Mozilla Firefox family browsers.
I came with this javascript snippet so far:
onmousedown = "return false;"
This works, but it has the problem of disabling inputs too, so the user won't be able to enter them with his pointer.
Does anybody know of a better way to avoid text selection in the whole page while still keeping the other elements working?
Thanks a lot
Comment