Created
April 8, 2014 05:03
-
-
Save bholzer/10092919 to your computer and use it in GitHub Desktop.
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> | |
<body bgcolor="cyan"> | |
<h1>My First Program</h1> | |
<button onclick="X()"><p ID="Y">Hey You!</p></button> | |
<input type="text" value="Z" name="Z"> | |
<button onclick="Q()"><p>..</p></button> | |
<p ID="S"></p> | |
<script> | |
function X() { | |
document.getElementById("Y").innerHTML="Type your name!"; | |
} | |
function Q() { | |
var x=document.getElementById("Z").value; | |
alert("Nice to Meet You!"); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment