Creating a button that closes the window

I am trying to create a button that when clicked on closes the browswer window, does anyone know how this is done?

Any help would be appreciated.

Thanks

you can’t just close a browser window except you opened it as a popup.

concerning the
opening a popup and closing it again:
google for “javascript+close”, I’m sure you will find billions of links there :wink: