Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is my iphone which works!...


XML
<script type="text/javascript"> // <![CDATA[
    if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
        document.location = "http://www.adrenalintattoos.co.uk/Adrenalin/index.html";
    } // ]]>
</script>



This is the ipad which doesn't?...

XML
<script type="text/javascript">// <![CDATA[
            var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
            if (mobile) {
            document.location = "http://www.adrenalintattoos.co.uk/Adrenalin/index.html";
            }
        // ]]></script>


<script type="text/javascript">// <![CDATA[
            var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
            if (mobile) {
            document.location = "http://www.adrenalintattoos.co.uk/Adrenalin/index.html";
            }
        // ]]></script>


<script type="text/javascript"> // <![CDATA[
    if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
        document.location = "http://www.adrenalintattoos.co.uk/Adrenalin/index.html";
    } // ]]>
</script>
Posted
Comments
Sergey Alexandrovich Kryukov 20-Feb-12 22:52pm    
And this is my question... oops! -- there is no such thing, despite the question mark in the title. Too bad; no question -- no answer, sorry.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900