I'm trying to make a simple calculator and whenever I want to add text to the textfield(say a number) it will show up, then will dissapear.
This is how I'm doing it, but why is the text dissapearing right after it appears?Code:function display(number) { var x = document.form1.displayText; x.value = number; }
Note: This method is called whenever one of the number buttons is clicked.




Reply With Quote