Skip to content

Instantly share code, notes, and snippets.

/mult

Created July 21, 2014 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f13e4dd147200e71d1d7 to your computer and use it in GitHub Desktop.
Save anonymous/f13e4dd147200e71d1d7 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" language="javascript">
function = mult() {
var s="";
var a = document.getElementById("width").value;
var b = document.getElementById("height").value;
s = parseInt(a) * parseInt(b);
document.getElementById("result").innerHTML = s;
}
</script>
</head>
<body>
<input id="width" name="width" type="text"/>
<input id="height" name="height" type="text"/>
<input type="button" onclick="mult()" value="Skaiciuok"/>
<p id="result"></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment