How to close the current Browser tab of the widget "Knowledge Article content"

Aniket Bhanse
Tera Guru

Hello all,

 

I have a requirement that whenever I open "My Knowledge Submissions", we have a button called "Search for Duplicates". When we click on the button, a new tab opens up which opens a list of knowledge articles. I have to select any one of the knowledge article. On this page, we have a button called "Attach KB Submission", this is an OOB widget (it updates the state of KB Submission record as "Complete"). 

 

I have a basic requirement that whenever I am clicking on the button "Attach KB Submission", I have to close the current browser tab. 
I tried the below methods:

 

  • window.close();
  • self.close();
  • var win = window.open("","_self"); win.close();
  • window.parent.close();
  • top.open('','_self',''); top.close();

All the above methods are working fine if I use the local browser. But if I try to replicate the same using VDI's browser (Chrome or Edge), the tab is getting closed, but the state is not updating to Closed.

 

Any advice what do I need to check?

 

Thank you for your time! 

0 REPLIES 0