Skip to content

Instantly share code, notes, and snippets.

@mogya
Created April 8, 2013 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mogya/5337175 to your computer and use it in GitHub Desktop.
Save mogya/5337175 to your computer and use it in GitHub Desktop.
run sms application automatically and close myself on iOS.
<html>
<head>
<title>start application automatically and kill myself.</title>
<script type="text/javascript">
function init(){
var iframe = document.createElement('iframe');
iframe.src = "sms:///";
document.body.appendChild(iframe);
window.opener = window;
var win = window.open(location.href,"_self");
win.close();
}
</script>
</head>
<body onload="init()">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment