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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:45:01+00:00 2026-06-08T04:45:01+00:00

<meta name=apple-mobile-web-app-capable content=yes /> <meta name=apple-mobile-web-app-status-bar-style content=black-translucent /> $(‘#btn-fb-share’).click(function() { $(‘#btn-fb-share’).attr(disabled, disabled); window.open(url,Mywindow,location=yes,menubar=yes); });

  • 0
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />     

$('#btn-fb-share').click(function() {
        $('#btn-fb-share').attr("disabled", "disabled");
        window.open(url,"Mywindow","location=yes,menubar=yes");
    });

On my Ipad (Where i made a Shortcut to the Website on the Home-Screen) the link does not open in a new Window (Safari). How can i solve this? On my PC the link opens correctly in a new Window.

EDIT: I’ll try to explain it clearer.

What is happening: My Web-App open’s the url in the same Window like my app.
Process Flow Is

What should happen is: The Facebook page opens in a new Tab in safari. (I can demonstrate this if i open my site over safari and not over my web app.)

Process Flow should be

I hope you can see the difference now. I need to open my Link in Safari in a new Tab. But right now it keeps open it in my Window, where I dont have “return Button”.

The only difference between the two pictures is. The first picture is the Website saved on my Homescreen. The second picture is the Website opened directly in Safari.

  • 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-08T04:45:03+00:00Added an answer on June 8, 2026 at 4:45 am

    Did a Google search and found this thread on macrumors.com with the same question that explains:

    For links that I want to open within the WebApp and not open in Safari, I use this:

    <a onclick="parent.location='http://url.com/page.html'">Link</a>
    

    For links that I want to open in Safari, I use the standard HTML link:

    <a href="http://url.com/another_page.html">Link</a>
    

    So I did another Google search and found how to detect if you’re using iOS in JavaScript: http://forrst.com/posts/JavaScript_iOS_Detection-Ofa

    Here’s my solution:

    var url = "http://www.google.com/";
    
    // Get the user agent string
    var deviceAgent = navigator.userAgent;
    // Set var to iOS device name or null
    var ios = deviceAgent.toLowerCase().match(/(iphone|ipod|ipad)/);
    
    $('#btn-fb-share').click(function() {
    
        if (ios) {
            // This is the line that matters
            $(this).attr('href', url);
        } else {
            // Your code that works for desktop browsers
            $('#btn-fb-share').attr("disabled", "disabled");
            window.open(url,2789432749274249,"location=yes,menubar=yes");
        }
    });
    

    I tested it in Chrome on a desktop, and on iOS from Safari and via a Home Screen WebApp. Here is a link to my working test: http://flackend.com/other/ios-test/

    Note that you need to set the link’s target to _blank for it to open in a new tab in Safari on iOS (not from a WebApp instance, if you opened it in the Safari app). You can set that directly in your HTML markup or do it with jQuery using attr.

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

Sidebar

Related Questions

I have found that while using the <meta name=apple-mobile-web-app-capable content=yes /> tag in iOS
When I use <meta name=apple-mobile-web-app-capable content=yes> , my page doesn't set, load, or retrieve
The Problem: With <meta name=apple-mobile-web-app-capable content=yes /> set, all of my jsonp requests are
Following is head section: <head> <meta name=viewport content=width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no /> <meta name=apple-touch-fullscreen
We have a base style sheet for a mobile web app where we have
I am working on a mobile web project.The web app is working well in
- (void)embedYouTube:(NSString*)url frame:(CGRect)frame { NSString *htmlString = [NSString stringWithFormat:<html><head>\ <meta name = \viewport\ content
Setting <meta name = viewport content = width = device-width/> is used to allow
I have a question about meta name and keywords: If I have more oages
I have the following abstract Django models: class Food(models.Model): name = models.CharField(max_length=100) class Meta:

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.