Paulo RB

Archive for fevereiro 13th, 2012

Detecção de UserAgent Cliente Side / iPhone

by paulorb on fev.13, 2012, under iPhone

Dica de como detectar em client side o UserAgent.  No exemplo verificamos se ele é Iphone

    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
    window.location = "http://www.paulorb.com.br";
    }
    
Leave a Comment more...


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Calendário

fevereiro 2012
S T Q Q S S D
« jan   mar »
 12345
6789101112
13141516171819
20212223242526
272829