iPhone Web App - Verify Agent


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if( window.navigator.userAgent.indexOf('iPhone') != -1){
  2. if( window.navigator.standalone == true) initialize();
  3. else document.write('<p>Tap the + button and choose "Add to Home Screen"</p>');
  4. }
  5. else{
  6. document.location.href = 'go-iphone.html';
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.