Last active
June 5, 2018 15:05
-
-
Save waldothedeveloper/7c365bf44ab8f61600956b10cc48d6d5 to your computer and use it in GitHub Desktop.
Binding a click event to our random button on the wikipedia search API challenge from FreeCodeCamp
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).ready(() => { | |
$("#random").click(() => { | |
return window.open("https://en.wikipedia.org/wiki/Special:Random"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment