Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d0ec287ae3
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (25 sloc) 0.63 kb
<html>
<head>
<script type = "text/javascript">
function fun()
{ var total;
var avg;
name = prompt();
a=prompt();
b=prompt();
c=prompt();
maths=parseInt(a);
physics=parseInt(b);
chemistry=parseInt(c);
alert(name);
alert(maths);
alert(physics);
alert(chemistry);
}
</script>
</head>
<input type="button" name = "click" value ="click" onclick = "fun()"><br>
maths <input type="textbox" name = "maths" onclick = "fun()"/><br>
physics<input type="textbox" name = "physics" onclick = "fun()"/><br>
chemistry<input type="textbox" name = "chemistry" onclick = "fun()"/>
</html>
Jump to Line
Something went wrong with that request. Please try again.