Created
February 9, 2012 05:10
-
-
Save joshellington/1777497 to your computer and use it in GitHub Desktop.
Send URL to phone
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
javascript:( | |
function() { | |
var s = prompt('Enter the number you want to send to.', '15035363309'); | |
if ( s != null && s != '' ) { | |
var req = new XMLHttpRequest(); | |
var u = 'http://phonehome-app.heroku.com/sms/send/'+s+'?url='+encodeURIComponent(window.location.href); | |
req.open('GET', u, false); | |
req.send(null); | |
} | |
} | |
)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment