Close chrome window with button

i search a lot but I was not able to find a way to close the page (chrome) using a button from dashboard. Basically I want to have a button called exit which when cliked to close the page.
Is that possible to achieve ?

Thanks a lot

Modern browsers try to protect themselves from rogue scripts and so restrict closing via a script.

Some workarounds might work: javascript - How to close current tab in a browser window? - Stack Overflow

1 Like