HELLSS
04-02-2003, 11:33 AM
I'm looking for a way to make it so the values in a forms text box cannot be changed by the user, but can still be changed through a script.
I know about
onFocus=this.blur()
but i'm fairly certain this does not work on all browsers. It also does'nt stop people from being able to copy, highlight the box, then paste in anything they want.
It's for a javascript game, and since I don't know how to go about displaying certain values to the player through means other than through form boxes I need to squash this way to cheat ;)
P.S. - If you know of a way, please direct me to a way of displaying things without having to use text boxes. That would solve my problem as well :thumbsup:
thanks in advance for any help you can give this n00b :D
I know about
onFocus=this.blur()
but i'm fairly certain this does not work on all browsers. It also does'nt stop people from being able to copy, highlight the box, then paste in anything they want.
It's for a javascript game, and since I don't know how to go about displaying certain values to the player through means other than through form boxes I need to squash this way to cheat ;)
P.S. - If you know of a way, please direct me to a way of displaying things without having to use text boxes. That would solve my problem as well :thumbsup:
thanks in advance for any help you can give this n00b :D