The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Linking back to website after mobile redirect

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #36902

    I currently use a bit of script to detect a mobile device which redirects users to the mobile page

    if (screen.width <= 699) {

    document.location = "mobile/index.html";


    The problem is I would like users to still have the option to view the full site on their mobile devices but if i have a link to the home page it pings them back to the mobile site. Any ideas?


    I’m struggling to do this, how do i go about it?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.