Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Close HTML Web Resource in Unified Client Interface App using Javascript

(0) ShareShare
ReportReport
Posted on by 255

Hi,

We have opened a HTML web resource using Xrm.Navigation.openWebResource(), but It can't close using closeWindow(true) OR window.close() in Unified Interface App and It's working in classic UI(WEB).

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

Regards,

Abhishek Bihani.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 Moderator on at
    RE: Close HTML Web Resource in Unified Client Interface App using Javascript

    Hi Abhishek,

    Please mark your response as verified so that it can help others looking for the same olution.

  • Verified answer
    Abhishek Bihani Profile Picture
    Abhishek Bihani 255 on at
    RE: Close HTML Web Resource in Unified Client Interface App using Javascript

    Hi Adrian,

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

    Thanks for your attention regarding this post.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,019 Super User 2025 Season 1 on at
    RE: Close HTML Web Resource in Unified Client Interface App using Javascript

    Hi Abhishek Bihani,

    There is currently no way to do this with JavaScript. You will need to wait until closeWindow(true); is 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

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,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans