Step 2
Add an HTML div to a blank page and insert several input buttons into the div. Ten of these buttons stand for number 0 to number 9 and the last button stands for the Backspace button. Set the onclick events of the ten number buttons to input() function, and then set the parameter of the input() function to this. Additionally, set the onclick event of the Backspace button to del() function.
Step 3
Create the input(e) and del() JavaScript functions on the page. The input(e) function enters the number into the text box by using the parameter e. The del() function deletes a number from the text box.
SPRT = SPaced RepiTion
We use cookies to enable the proper functioning and security of our website, and to offer you the best possible user experience.
Advanced settings
You can customize your cookie preferences here. Enable or disable the following categories and save your selection.
The essential cookies are essential for the safe and correct operation of our website and the registration process.
Functional cookies remember your preferences for our website and enable its customization.
Performance cookies monitor the performance of our website.
Marketing cookies allow us to measure and analyze the performance of our website.