Skip to content

Instantly share code, notes, and snippets.

@Humoud
Created May 16, 2015 21:43
Show Gist options
  • Save Humoud/ee8bc35e11af7e05b41d to your computer and use it in GitHub Desktop.
Save Humoud/ee8bc35e11af7e05b41d to your computer and use it in GitHub Desktop.
Web Tutorial 2
<!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