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

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    keyur7379 Profile Picture
    902 on at

    Hi ,

    Please use this code :

    closeWindow(true);

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

    Thanks,

    Keyur Shah.

  • Krishna Bhanushali Profile Picture
    160 on at

    Hi Keyur,

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

  • Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    Hi,

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans