342
Views
11
Comments
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.

2021-09-21 09-26-31
Aadhavan Shanmugam

Hi @Kumaresan R,

You can use below JavaScript to onClickButton action

window.close();

Thanks, Aadhavan S


2021-09-15 13-10-59
Kumaresan R

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

2021-09-21 09-26-31
Aadhavan Shanmugam

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

2021-09-15 13-10-59
Kumaresan R

Hi @Aadhavan Shanmugam,

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

Thanks.

2025-04-17 05-42-16
Ajit Kurane

Hello Kumaresan,

You can refer to this JavaScript  

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

Regards,

Ajit kurane.

2021-09-21 09-26-31
Aadhavan Shanmugam

Hi Ajit, this comment is also not working in chrome

2021-09-15 13-10-59
Kumaresan R

Hi @Ajit Kurane,

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

UserImage.jpg
Posani Charitha

Hi Kumaresan R,

If you find any solution Regarding how to close the currrent tab when clicked on button in chrome, Microsoft Edge in Reactive web Application. could you Please share it here as iam also facing the same issue.


Thanks

Charitha

UserImage.jpg
Sonali Verma
2022-08-31 17-22-32
Jenifer Smith

Hi! I also waiting for the decision for work from Chrome. 

Thank you!

productivity tracker developer

UserImage.jpg
Garima Sharma

Hi 
can you please the solution for this problem


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