Anyone know a way to make the "DEL" button functional?
Title mostly explains it all... I can't figure out how I can make the "DEL" button functional...
Answered by ruiwenge2 (1105) [earned 5 cycles]
use this code for the onclick attribute:
document.calc.txt.value = document.calc.txt.value.slice(0, document.calc.txt.value.length - 1)