how can i use this alert so when i click ok it closes the browser window:

<script language="Javascript">

<!--

alert ("You have been kicked!")
//-->

</script>