Created
December 8, 2014 19:15
-
-
Save devdays/401287672e1f2f84467a to your computer and use it in GitHub Desktop.
JavaScript - this inside a function
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
function makeMeRed() { | |
var docBody = this.document.body; | |
docBody.style.background = '#cc0000'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment