Created
May 11, 2019 21:18
-
-
Save caracalla/c946fcb82090acdea61987a4929cef2c 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 lang="en"> | |
<head> | |
<title>Learn Git</title> | |
</head> | |
<body> | |
<p>Press the button to make something happen:</p> | |
<button id="action-button">Click Me</button> | |
<div id="main-container"></div> | |
<script> | |
var container = document.getElementById('main-container'); | |
var button = document.getElementById('action-button'); | |
button.addEventListener("click", function (event) { | |
event.preventDefault(); | |
container.innerHTML = container.innerHTML + 'a'; | |
}); | |
</script> | |
<!-- | |
<script src="main.js"></script> | |
--> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment