Closing a window


this is probably a really simple code, (it might be javascript i dunno)… but i want a simple ‘X’ button that will close my window when the user clicks it.
what code will be applied to the button?

cheers peeps

cal