
La manera de detectar el iPhone (o el iPod Touch) és la següent:
if(navigator.platform=="iPhone"||navigator.platform=="iPod")
{
document.write('
’);
}
També he trovat una web on publica un script que detecta totttttt absolutament tooooottt (symbian, playstation, windows ce, android, iphone, ipod touch, etc, etc...): http://www.hand-interactive.com/resources/detect-mobile-javascript.htm