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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:02:15+00:00 2026-06-09T20:02:15+00:00

Normally, when I use <a href=_URL_></a> in my metro application, the url is opening

  • 0

Normally, when I use <a href="_URL_"></a> in my metro application, the url is opening in the default web browser. I don’t want to do this with anchor, I want to do the same behavior via Javascript and as async. But I don’t know how to open the url with default browser.

Here is my code:

var $aTag = $("<a/>").click(function (event) {
    showYesNoDialog(
        "Do you approve?", 
        "The link will be opened in another window. Do you approve?", 
        "Yes", // Text of yes button
        "No",  // Text of no button
        function () { // Behavior of yes button
            // I tried this but nothing happened.
            window.location.href = _URL_; // Should open in chrome or default web browser
        },
        function () { // Behavior of no button
            // do nothing
        }
    );
});

What I also tried is that:

$("<a href='" + _URL_ + "'></a>").click();

But this didn’t work, too.

  • 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-09T20:02:16+00:00Added an answer on June 9, 2026 at 8:02 pm

    Finally, I found my answer while searching on google.
    Open a URL in a new tab (and not a new window) using JavaScript

    I used this code to open the url out the metro app and it worked in my situation:

    window.open(_URL_, '_blank');
    window.focus();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Web services on Heroku normally use the PORT environment variable, but I want to
I have this code that where I would normally use one line: if (tableView
I want to detect when my touchpad is clicked! I normally use a usb
Normally we use window.location.href=/index.php?querystring; in javascript. Is there a way to send the querystring
I normally use this function to sanitize my form inputs before storing them into
In MVC2 template, I normally use this.ViewData.TemplateInfo.GetFullHtmlFieldId(fieldName) to generate the id field of an
The page in question Please open the page in whatever browser you normally use
I normally use this step to set up records with factory_girl: Given /^the following
I don't normally use eclipse, so please forgive my ignorance. Actually to analyze trace
So i normally use this syntax to create as symbolic link from powershell. PS

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.