How to close a browser current tab in Reactive Web?
Question
Application Type
Reactive

Hi,

 Whenever click the button action need to close the browser current tab. I have tried in Traditional web and it's working fine but Reactive web is not working.

Hi @Kumaresan R,

You can use below JavaScript to onClickButton action

window.close();

Thanks, Aadhavan S


Hi @Aadhavan Shanmugam

Thanks for your response and I've tried in Reactive Web. But, I can't able to close a browser tab using the javasript "window.close()"

Please find this link.


Thanks, Kumaresan R

Hi @Kumaresan R,

This will only work in Internet explorer. Due to security issues, this comment will not work in the Chrome browser. 

window.open('','_self').close() - This will also will not work in your case.

Let me find the alternatives.

Thanks, Aadhavan S

Hi @Aadhavan Shanmugam,

 Yes working in Internet explorer only.  If you got any other alternate solution please let me know.

Thanks.

Hello Kumaresan,

You can refer to this JavaScript  

 window.open('','_self').close()

Regards,

Ajit kurane.

Hi Ajit, this comment is also not working in chrome

Hi @Ajit Kurane,

 Thanks for responding, We will find the alternate solution for Chrome, Mozilla Firefox and Microsoft Edge.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.