Search code examples
htmllinkedin-apideep-linkinghtml-target

Open URL in system browser eg safari,chrome etc instead of mobile app browser?


I have a simple link in my app, user can share this app via post or private message, now I want when the user clicks this link it should open it in sytem browser not linkdein app browser

here is a link in my app

document.body.innerHTML += '<br/><br/><br/><br/><p>LinkedInApp TRUEee <a onclick="window.open(this.href,"_system");return false;" href="https://meed.audiencevideo.com/">Visit our HTML tutorial</a>>Open in iBrowser</a></p>'

Now when user clicks the link 'it open the link in linkdein app browser'

What do I need to change to get what I want?


Solution

  • I don't sure that this can be appropriate for you, cuz I'm don't understand the question at all, but I hope this can help you:

    May you have a script that disallows new pages being opened. So instead you can use something like this:

     <a onclick="window.open(this.href,'_blank');return false;" href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>
    

    Or if you want to use Deep Link from your mobile app, then you have to follow to this steps. But in that case why you have tagged this question under #html or #html-target .. You just could add #deep-linking or something like that