Created
October 20, 2010 21:15
-
-
Save lifeinafolder/637336 to your computer and use it in GitHub Desktop.
Image Beacon
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
var img = new Image(); | |
var data = 'name="John"'; | |
img.onload = function(){ | |
console.log('data successfully sent'); | |
} | |
img.src = 'YOUR SCRIPT URL HERE' + '?' + data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment