Created
April 8, 2013 14:27
-
-
Save mogya/5337175 to your computer and use it in GitHub Desktop.
run sms application automatically and close myself on iOS.
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
<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