I was making a small JavaScript program and I found that when I make a local variable from the value of an HTML input field,... var abcd = document.myform.abcd.value; Code (markup): ...it makes a pointer back to the field so that when I change the local variable... abcd = 1; Code (markup): ...the field located at document.myform.abcd.value changes its value to 1 as well. I know enough about programming theory to know that I created a pointer back to the field value "object" (if this were object-oriented). But how to I just copy the value of the field into the local variable and leave it at that so that no modifications to the local variable will change the input field itself?