/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if( window.navigator.userAgent.indexOf('iPhone') != -1){ if( window.navigator.standalone == true) initialize(); else document.write('<p>Tap the + button and choose "Add to Home Screen"</p>'); } else{ document.location.href = 'go-iphone.html'; }