I want that when I surf with my iPhone to my site that my iPhone get another text than when I surf with my Mac
<script type="text/javascript">
if ((navigator.userAgent.match(/iPhone/i))
|| (navigator.userAgent.match(/iPod/i))
|| (navigator.userAgent.match(/iPad/i))) {
document.write("you are surfing with an iPhone");
} else {
document.write("you are not surfing with an iPhone")
}
</script>
It won't work. Is there anyone who can help me?
Ps. sorry for my bad English, I'm from Belgium, Flanders