Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to close HTML web resource in Unified Interface App using JS?

(0) ShareShare
ReportReport
Posted on by

Hi,

Here I have opened a HTML web resource, but It can't close using window.close() in Unified Interface App and It's working in WEB.

How to close/hide that HTML web resource using code?

Please suggest me.

*This post is locked for comments

  • RE: How to close HTML web resource in Unified Interface App using JS?

    Hi,

    We have achieved using window.top.close() it's working in both Unified client interface & Classic UI.

  • RE: How to close HTML web resource in Unified Interface App using JS?

    Hi,

    There is no way. You can just use back button or use popup. But make sure that if you are going to publish your product on AppSource, Microsoft will reject your app in case of using popup. I just experience this.

  • Krishna Bhanushali Profile Picture
    Krishna Bhanushali 160 on at
    RE: How to close HTML web resource in Unified Interface App using JS?

    Hi Keyur,

    I tried with the above code but it does not works. Is there any other way to close a window using code?

  • Suggested answer
    keyur7379 Profile Picture
    keyur7379 902 on at
    RE: How to close HTML web resource in Unified Interface App using JS?

    Hi ,

    Please use this code :

    closeWindow(true);

    This function is working by default in html web resource.]

    Thanks,

    Keyur Shah.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans