Created
October 29, 2015 07:04
-
-
Save amykangweb/5755dcb522e8e2167009 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
var removeText = function() { | |
var paraElement = this; | |
container.removeChild(paraElement); | |
} | |
var bindElementEvents = function(element) { | |
element.onclick = removeText; | |
} | |
newButton.onclick = addText; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment