Detectar mediante javascript la navegación web através de un iPhone

Para detectar mediante JS que navegamos através de un iPhone, podemos usar el siguiente código:

<script>
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{location.replace("http://pruebas.unidadeditorial.com/prototipos/maite/mundomovil/Home_HORZTL.html");}
</script>

btemplates