Skip to main content

Notifications

Dynamics 365 general forum
Answered

Open web resource url link as a new browser tab

Posted on by 98

Hi everyone,

 

I have the following web resource added to my Solution. It is basic external HTML link to a SharePoint site:


web-resource.jpg

I have added the web resource to my form. However, the URL link opens inside the model driven app itself rather than launching as a new tab in the browser. Could you anyone share any advice on how to open a new tab in the current browser when clicking on an external URL link?

3157.form.png

best regards,

Imran-Ami

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,319 Moderator on at
    RE: Open web resource url link as a new browser tab

    Hello,

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

  • Ami K Profile Picture
    Ami K 98 on at
    RE: Open web resource url link as a new browser tab

    Thank you!

    Final HTML:

    <html>
    <head>
    <meta>
    <meta>
    <meta>
    <meta>
    </head>
    <body onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;">
    <p style="font-family: undefined;"></p>
    <p class="MsoNormal" style="font-family: undefined;">
    <b style="">
    <a href=xxxxx.sharepoint.com/.../Business-Cases.aspx target="_blank" style="">
    <font face="Verdana" size="2" color="#0000ff">For help, please click here to open the Business Case Information Hub</font>
    </a>
    </b>
    </p>
    <p style="font-family: undefined;"></p>
    </body>
    </html>

  • Verified answer
    a33ik Profile Picture
    a33ik 84,319 Moderator on at
    RE: Open web resource url link as a new browser tab

    As I mentioned, include target="_blank" tag in your url tag. Good luck.

  • Ami K Profile Picture
    Ami K 98 on at
    RE: Open web resource url link as a new browser tab

    Hi a33ik ,

    Thanks for the quick response!

    Below is the HTML:

    <html>
    <head>
    <meta>
    <meta>
    <meta>
    </head>
    <body onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;">
    <p style="font-family: undefined;"></p>
    <p class="MsoNormal" style="font-family: undefined;">
    <b style="">
    <a href=xxxxx.sharepoint.com/.../Business-Cases.aspx style="">
    <font face="Verdana" size="2" color="#0000ff">For help, please click here to open the Business Case Information Hub</font>
    </a>
    </b>
    </p>
    <p style="font-family: undefined;"></p>
    </body>
    </html>

    As image:

    2451.HTML.png

  • Verified answer
    a33ik Profile Picture
    a33ik 84,319 Moderator on at
    RE: Open web resource url link as a new browser tab

    Hello,

    Can you please provide the code behind that url?

    I believe adding of the attribute target="_blank" should solve your issues. Check this - www.w3schools.com/.../att_a_target.asp

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans