Created
May 16, 2015 21:43
-
-
Save Humoud/ee8bc35e11af7e05b41d to your computer and use it in GitHub Desktop.
Web Tutorial 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Cafe Pizza</title> | |
</head> | |
<body> | |
<h1>Cafe Pizza</h1> | |
<h3>Coffee and Pizza. Allah!</h3> | |
<p>Menu:</p> | |
<ul> | |
<li>Turkish Coffee 5KD</li> | |
<li>Pizza 10KD</li> | |
<li>Pumpkin Spice Late 7KD</li> | |
</ul> | |
<input id="txt"></br> | |
<button onclick='buyBtn()'>Buy</button> | |
<script> | |
function buyBtn(){ | |
console.log('hi hhh'); | |
var a = 123; | |
var b = "000"; | |
console.log(a); | |
console.log(b); | |
console.log(a+b); | |
var input1 = document.getElementById("txt"); | |
var kalam = input1.value; | |
alert(kalam); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment