Created
January 22, 2018 17:19
-
-
Save parzibyte/84ff93e0ca3e74c2585101059c1d0e00 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
document.querySelector("#btnImprimirDiv").addEventListener("click", function() { | |
var div = document.querySelector("#imprimible"); | |
imprimirElemento(div); | |
}); | |
document.querySelector("#btnImprimirParrafo").addEventListener("click", function() { | |
var parrafo = document.querySelector("#parrafo"); | |
imprimirElemento(parrafo); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment