Avatar

Level 7

Do you mean that you don't want to modify the variable with your code, too? Or just that you don't want a user to modify it?

If you're trying to make sure that you don't modify it with your code, then you can create a variable to temporarily store the value, then put it back after the reset.

If you're just trying to keep the user from messing with it, you can set it to read only after you receive it. tfExample.access = "readOnly"; should work for that in JavaScript.