Skip to content

Instantly share code, notes, and snippets.

@cianmce
Last active March 26, 2018 15:41
Show Gist options
  • Save cianmce/774471fbcffd4e31a950fbffa9b9a4d0 to your computer and use it in GitHub Desktop.
Save cianmce/774471fbcffd4e31a950fbffa9b9a4d0 to your computer and use it in GitHub Desktop.
Click "Raw" and replace "gist.githubusercontent.com" with "rawgit.com" and add "?msg=Some message" to the end
<html>
<script>
/*
Add GET param "msg" e.g. "?msg=Some message"
*/
alert(decodeURI(location.href.split('?msg=')[1]));
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment