4 Replies Latest reply: Dec 21, 2012 5:46 AM by ofthebridge RSS

    what script do I use to redirect to new muse mobile site uploaded to an existing site?

    ofthebridge Community Member

      I'm creating a mobile site that I will upload to an existing site outside BC. What script should I use to detect the mobile device and redirect to the new mobile site?

       

      <script type="text/javascript">

      if ('desktop' == 'phone') {

              window.location = 'http://www.site.com/phone/index.html';

                 }

      </script>

      or

       

      <link media="only screen and (max-device-width: 370px)" rel="alternate" href=".../phone/index.html" />

       

      or something different.

       

      thanks