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

Notifications

Announcements

No record found.

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)
  • DianeF1 Profile Picture
    210 on at

    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

  • st738407 Profile Picture
    227 on at

    I did not find a solution for this.

  • Suggested answer
    Abed Haniyah Profile Picture
    4,287 on at

    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 :)

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    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

  • Verified answer
    DianeF1 Profile Picture
    210 on at

    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.

  • st738407 Profile Picture
    227 on at

    Thank you all, this worked for me.

  • Community Member Profile Picture
    on at

    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

  • nbichara Profile Picture
    on at

    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

  • nidnani Profile Picture
    285 on at

    Do we have a solution for this? Its not working

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans