Close the current tab with a button

0
Hi all,   I use JavaScript Action: OpenURL_OpenTab to open a page with URL in a new tab. It successfully opens a page in a new tab but I was wondering if there is any way to make a button to close the current open tab. Any idea?
asked
1 answers
0

Hi Jay

 

This can be done using window.close() in js, Add a button or logic in the page that was opened by using window.open(url, "_blank");

.Use window.close() in a JavaScript action there.

Note: This works because the tab was opened by script. if you open a tab with script then you can close it via a script.

 

I hope this help's a lot

answered