Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8785349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:19:59+00:00 2026-06-13T21:19:59+00:00

I have a website that needs to redirect mobile users to a mobile site,

  • 0

I have a website that needs to redirect mobile users to a mobile site, however because of the sites being hosted in different places, I can’t set the cookie to remember if they’ve been directed from the mobile site. Therefore there is a continuous loop.

All I want to do now is display a popup if the user is viewing on a mobile, offering them the option to view the website on a mobile or cancel to view the full site.

I know this will be possible in Javascript/jQuery, but I’m not sure how to go about it.

Could anybody help me with this please?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:20:00+00:00Added an answer on June 13, 2026 at 9:20 pm

    You just just add the pop-up to your HTML, hide it on default and display it if it’s a mobile device using CSS.

    /* hidden on default */
    div#popup { display: none; }
    
    /* use a media query to filter small devices */
    @media only screen and (max-device-width:480px) {
        /* show the popup */
        div#popup { display: block; }
    }
    

    This is the best option by far, performance-wise. All modern phones support media-queries, so you won’t have issues with that either.

    Just add two links asking the user to go to the desktop site or mobile one. If he picks the desktop site, you can leave the popup out using a server-side language, or just remove the popup using javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that I'm making that needs a background resizer. Currently, I
I have a WordPress website that needs to have its articles in multiple languages.
I have a webforms website that needs to be set either to danish (DK)
I have images on my website that the user needs to allow the Facebook
I have an application that needs to check a website feed every second. Sometimes
I have a web site to do with alcohol that needs to verify the
I've have a web site I'm building using NodeJS, that needs to serve up
I have a form on a website that needs validating before entering the form
I have a shopping cart website running classic ASP that needs help during the
I have a website I am making that tracks a users companies through employments.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.