Created
January 27, 2014 13:03
-
-
Save eddie1707/8648216 to your computer and use it in GitHub Desktop.
Javascript opdracht
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>Introductie Javascript</title> | |
</head> | |
<body> | |
<a href="#" onClick="MaakDeBoxRood()" id="link1">Ik ben button 1</a> <br /> | |
<a href="javascript:MaakDeBoxRood()" id="link2">Ik ben button 2</a> <br /> | |
<a href="#" id="link3">Ik ben button 3</a> <br /> | |
<input type"text" id="textbox"> | |
<input type="button" value="Send" id="Send" /> | |
<script> | |
function PopUp() { | |
var textbox = document.getElementById('textbox'); | |
alert(textbox.value); | |
} | |
var textbox = document.getElementById('textbox'); | |
Send.addEventListener('click', function(){ | |
PopUp(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment