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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:24:20+00:00 2026-05-30T19:24:20+00:00

how do i change the content of a div when accessed from ios device

  • 0

how do i change the content of a div when accessed from ios device and android device. i am creating a mobile website for a app for the company i work in, it is based on jquery mobile framework. the problem is if the user is on ios device then he should get the app store link and if he is on android device then he should get the android market link.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Thank You</title>
    <link rel="stylesheet"  href="../../jquery.mobile-1.0.1.min.css" />
    <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
    <script src="../../jquery.js"></script>
    <script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
    <script src="../_assets/js/jqm-docs.js"></script>
    <script src="../../jquery.mobile-1.0.1.min.js"></script>


    <script type="text/javascript">
    <!--
    if (screen.width >= 330) {
    document.location = "indexandroid.html";
    }
//-->
</script>

</head> 
<body> 
<div data-role="page" class="type-home">
<div data-role="header" data-theme="f">
        <h1>ThankYou!</h1>      
        <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-left jqm-home">Home</a>
    </div><!-- /header -->

    <div class="content-secondary">
    <div>
            <p class="intro2"><strong>Download the App.</strong></p>
            <div class="store">
            <a href="##"><img src="../_assets/images/app-store.png"></a>
            <a href="##"><img src="../_assets/images/android-market.png"></a>
        </div>
        </div>


</div>
</body>
</html>

right now i have this javascript code that sends the user to the specific page if there screen size is bigger than the specific one.

  • 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-05-30T19:24:21+00:00Added an answer on May 30, 2026 at 7:24 pm

    As far as I know, the easiest way to do this would be with user-agent detection…

    var ua = navigator.userAgent.toLowerCase();
    var isAndroid = ua.indexOf("android") > -1;
    var isiPhone = ua.indexOf("iphone") > -1;
    if(isAndroid) {
      // display your android app store etc..
    }
    

    etc…

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

Sidebar

Related Questions

I'm building a website which should change the content div with another content div
I am trying to change the content inside a DIV from separate links when
I am trying to change the content of the div using javascript/jquery. While the
I have a div whose content may change in various ways: for instance its
I'm working on a website where I need to change the content of 2
Think that you have a content div whether the content of a website is
My website is [link-removed] and when you change the page from the main menu
I get code from a website, something like (file name: index.php): <html> <body> <div
I wanted to ask how to change div content, but not using innerhtml.
How is it possible to change the content of this div, when one of

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.