web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Open a new window with SiteMap button

(0) ShareShare
ReportReport
Posted on by 227

Hello,

I am trying to create a tile within the sitemap that when clicked will open a custom URL in a new tab or new window (it does not matter which).  I currently have the below in my sitemap, but am not getting a new tab/window, just a loading screen.  I saw some posts about using window.open, but this is not working for me.

<SubArea Id="TestHelpSite" Url="javascript:window.open('sites.google.com/.../new-hires');" AvailableOffline="false" PassParams="false" >
</SubArea>

*This post is locked for comments

I have the same question (0)
  • nidnani Profile Picture
    285 on at
    RE: Open a new window with SiteMap button

    Do we have a solution for this? Its not working

  • nbichara Profile Picture
    on at
    RE: Open a new window with SiteMap button

    Hi Diane,

    It works for me (open iframe in new tab) but the current page display blank page .

    have you seen this behavior  before ?

    thank for your reply

  • Community Member Profile Picture
    on at
    RE: Open a new window with SiteMap button

    We get a “This content cannot be displayed in a frame” .

    If we click on the "Open this Content in a new window" is works.

    Can I change my IE settings to allow this?

    5314.cannot.jpg

  • st738407 Profile Picture
    227 on at
    RE: Open a new window with SiteMap button

    Thank you all, this worked for me.

  • Verified answer
    DianeF1 Profile Picture
    210 on at
    RE: Open a new window with SiteMap button

    Raz - for me your suggestion worked with just a bit of tweaking.  Putting my code here for history's use.

    <html><head>
    
    <title></title>
    
    <meta charset="utf-8"></head>
    
    <body>
    <script type="text/javascript">
    function GoGoogle()
    {
    window.open("http://www.google.com","_blank");
    }
    window.onload=GoGoogle();
    </script>
    </body>

    Thank you so much for the guidance - Mike give it a try it worked for me.

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at
    RE: Open a new window with SiteMap button

    Hi Mike,

    You can call the HTML web resource through the site map. The below example shows this on button click. You can try to call on html body load itself.

    msdcrmblog.wordpress.com/.../create-a-custom-html-page-which-shows-under-the-navigation-barmscrm-2013

    Best Wishes, Raz

  • Suggested answer
    Abed Haniyah Profile Picture
    4,287 on at
    RE: Open a new window with SiteMap button

    What about adding HTML web source to call your external link:

    <!DOCTYPE html>

    <html>

    <head>

      <!-- HTML meta refresh URL redirection -->

      <meta http-equiv="refresh"

      content="0; url=http://www.mydomain.com/&quot;>

    </head>

    <body>

      <p>The page has moved to:

      <a href="http://www.mydomain.com/&quot;>this page</a></p>

    </body>

    </html>

    Then call it as below:

    <SubArea Id="TestHelpSite" Url="$webresource:new_/CallExternalLink.htm" AvailableOffline="false" PassParams="false" >

    </SubArea>

    CRM web resource opens in new window :)

  • st738407 Profile Picture
    227 on at
    RE: Open a new window with SiteMap button

    I did not find a solution for this.

  • DianeF1 Profile Picture
    210 on at
    RE: Open a new window with SiteMap button

    Mike - did you ever find a solution.  I too need to access an external url from the site map in a new browser window or tab.  Is this possible?

    Regards,

    Diane

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans