2010-04-04 5 views

Répondre

1

Recherchez l'agent utilisateur. c'est-à-dire la manière javascript.

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { 
    if (document.cookie.indexOf("iphone_redirect=false") == -1) window.location = "http://m.url.com"; 

} 

Ou faites-le en .net avec quelque chose comme Mobile Device Browser File.

Questions connexes