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 8698727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:47:22+00:00 2026-06-13T01:47:22+00:00

I made two different webpages for the same site: one for phone devices and

  • 0

I made two different webpages for the same site: one for phone devices and one for desktop devices. The primary reason is because the webpage has a lot of buttons and if you are using a phone the buttons are dificult to touch because they looks very small on phone screens. So I made a javscript who redirects the user to the respective page based on the resolution of the screen.

if ( (screen.width < 800) && (screen.height < 600) ) { 
    window.location = 'mobilesite';
} else {
    window.location = 'desktopsite';
}

But i am worried about the new retina displays. I think this approach is not going to work. (I have not a retina display device to test it)

I decide not to use a differentiation based on the operating system because my problem is with the size, not with the OS, for example, in Android/IOS/Kindle/etc. tablets I prefer the users to use the desktop version because it looks better in big screens.

So I have two questions:
1.- The resolution of the retina display affects the resolution of the browser? (Or maybe only the native aplications)

2.- Is there any different way to diferentiate between a phone and a tablet using javascript or jquery clientside?

Also, I think is important not to limit the script to detect this diference in IOS devices only, very soon it will be more high resolution displays in phones of other brands.

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-13T01:47:22+00:00Added an answer on June 13, 2026 at 1:47 am

    An Apple Retina Screen will report itself as if it has half the amount of pixels it actually has, because the browser does magic itself. If you want to detect a high-res screen, multiply by the pixeldensity.

    Don’t do a useragent check, because you’ll be adding more devices every 2 weeks. And its breaking the web. Do feature checks or specific checks.

    Oh, and you’ll want to read into CSS3 Media Queries, in case you just want to show bigger buttons for mobile devices.

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

Sidebar

Related Questions

I made two different Fibonacci functions, the first one worked perfectly. Then I tried
For some reason, on two different websites made by me, and on NO other
I've made mistake and allowed two different routes pointing at same place. Now I've
I made two classes in which one is main and other one is a
So, hello everybody. I've made two test programs for creating a own control. One
I have two different classes made in two different units, how do i will
Ok so I have a small project with two different scaffoldings I've made.In the
I made a simple drawing app with HTML5 canvas. You click in two different
I have two different versions of a javascript file: one works fine, the other
In short: I want to generate two different source trees from the current one,

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.