Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Coder By EXPLOR5
- function clr()
- {
- var a=document.getElementById("txt");
- a.value="";
- }
- function add(n)
- {
- var a=document.getElementById("txt");
- a.value=a.value+n;
- }
- function calculate()
- {
- a=document.getElementById ("txt");
- a.value=eval(a.value);
- }
- function back() {
- var v =document.getElementById("txt").value; document.getElementById("txt").value = v.substr(0, v.length - 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement