Posted By

tibichi on 08/31/10


Tagged


Versions (?)

iPhone Web App - Verify Agent


 / Published in: JavaScript
 

  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  

You need to login to post a comment.