Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as JavaScript by vinay goyal ( 12 years ago )
//for calculator
<html>
<head>
<title>wasimggg</title>
[removed]
function a(rel)
{
document.f1.t1.value+=rel;
}
function b()
{
c(eval&#40;document.f1.t1.value&#41;);
}
function c(val)
{
document.f1.t1.value=val;
}
function d()
{
document.f1.t1.value="";
}
[removed]
</head>
<body>
<form name="f1">
 <input type="text" name="t1"size=26;>
 <table cellpading=8 cellspacing=10 border=3 >
 <tr><td><input type=button value=9 ></td><td><input type=button value=8 ></td><td><input type=button value=7 >
 </td><td><input type=button value=- ></td></tr>
 <tr><td><input type=button value=6 ></td><td><input type=button value=5 ></td><td><input type=button value=4 >
 </td><td><input type=button value='*' ></td></tr>
 <tr><td><input type=button value=3 ></td><td><input type=button value=2 ></td><td><input type=button value=1 >
 </td><td><input type=button value='/' ></td></tr>
 <tr><td><input type=button value='+' ></td><td><input type=button value=0 ></td><td><input type=button value='=' >
 </td><td><input type=button value='%' ></td></tr>
 <tr><td><input type=button value="clr" ></td></tr>
</form>
</table>
</html>

 

Revise this Paste

Your Name: Code Language: