Showing posts with label java script. Show all posts
Showing posts with label java script. Show all posts

Thursday, 2 April 2015

redirect coding blogger and website

<script type='text/javascript'>

var d='<data:blog.url/>';

d=d.replace(/.*\/\/[^\/]*/, '');

location.href = 'http://sariinfo.com';

</script>

Tuesday, 19 August 2014

paste copy

<html>
<head>
<title>Result Card</title>
<script>

alert("welcome to Result card");
stname=prompt("Please Type Your Name","");
rollno=prompt("Please Type Your Rollno","");
english=prompt("Please Type Your English Marks","");
urdu=prompt("Please Type Your Urdu Marks","");
check=confirm("Are You Sure");
if(check==true)
{
document.write("<table border='1' width='400' align='center'><tr><td>Name</td><td>" + stname +" </td></tr><tr><td>RollNo</td><td>" + rollno +" </td></tr><tr><td>English</td><td>" + english +" </td></tr></table>");
}
else
{
document.write("Result Not found");
}



</script>
</head>
<body>

</body>
</html>

Sunday, 17 August 2014

java script

<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>