Skip to content

Instantly share code, notes, and snippets.

@waldothedeveloper
Last active June 5, 2018 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waldothedeveloper/7c365bf44ab8f61600956b10cc48d6d5 to your computer and use it in GitHub Desktop.
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
$(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