Individuare iPhone o iPod Touch con Javascript

if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
if (document.cookie.indexOf(“iphone_redirect=false”) == -1) {
window.location = “http://test.com?iphone&i=COMR”;
}
}

Lascia un commento