Closing the browser window from Wicket

On the project I was working on I stumbled upon a problem that when a user makes a certain action, the browser window needs to close. The internet is full of solutions for closing the browser window via JavaScript. This StackOverflow topic offers a great script example how to achieve the closing of the browser ...