Skip to content

Instantly share code, notes, and snippets.

@joshellington
Created February 9, 2012 05:10
Show Gist options
  • Save joshellington/1777497 to your computer and use it in GitHub Desktop.
Save joshellington/1777497 to your computer and use it in GitHub Desktop.
Send URL to phone
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