<html>
<head>
<title>java script</title>
<script>
a="Asif";
c=20359;
f=80;
h=65;
j=55;
total=300;
ob=h+f+j;
per=ob*100/total;
if(per>50)
{
ans="pass";
}
else
{ans="fail";
}
alert("welcome")
confirm("are you sure")
prompt("text")
</script>
</head>
<body>
<h1 align="center"><font color="#FF00FF">Result Card</font></h1>
<table border="1" height="" width="400" align="center">
<tr>
<td width="100">Name</td>
<td><script>document.write(a)</script></td>
</tr>
<tr>
<td width="100">Roll No</td>
<td><script>document.write(c)</script></td>
</tr>
<tr>
<td width="100">Urdu</td>
<td><script>document.write(f)</script></td>
</tr>
<tr>
<td width="100">English</td>
<td><script>document.write(h)</script></td>
</tr>
<tr>
<td width="100">Math</td>
<td><script>document.write(j)</script></td>
</tr>
<tr>
<td width="100">Total</td>
<td><script>document.write(total)</script></td>
</tr>
<tr>
<td width="100">obtained marks</td>
<td><script>document.write(ob)</script></td>
</tr>
<tr>
<td width="100">Percentage</td>
<td><script>document.write(per)</script></td>
</tr>
<tr>
<td width="100">Pass/Fail</td>
<td><script>document.write(ans)</script></td>
</tr>
</table>
</body>
</html>
<head>
<title>java script</title>
<script>
a="Asif";
c=20359;
f=80;
h=65;
j=55;
total=300;
ob=h+f+j;
per=ob*100/total;
if(per>50)
{
ans="pass";
}
else
{ans="fail";
}
alert("welcome")
confirm("are you sure")
prompt("text")
</script>
</head>
<body>
<h1 align="center"><font color="#FF00FF">Result Card</font></h1>
<table border="1" height="" width="400" align="center">
<tr>
<td width="100">Name</td>
<td><script>document.write(a)</script></td>
</tr>
<tr>
<td width="100">Roll No</td>
<td><script>document.write(c)</script></td>
</tr>
<tr>
<td width="100">Urdu</td>
<td><script>document.write(f)</script></td>
</tr>
<tr>
<td width="100">English</td>
<td><script>document.write(h)</script></td>
</tr>
<tr>
<td width="100">Math</td>
<td><script>document.write(j)</script></td>
</tr>
<tr>
<td width="100">Total</td>
<td><script>document.write(total)</script></td>
</tr>
<tr>
<td width="100">obtained marks</td>
<td><script>document.write(ob)</script></td>
</tr>
<tr>
<td width="100">Percentage</td>
<td><script>document.write(per)</script></td>
</tr>
<tr>
<td width="100">Pass/Fail</td>
<td><script>document.write(ans)</script></td>
</tr>
</table>
</body>
</html>
No comments:
Post a Comment