Stateless Form: Close the Window

Stateless Form: Close the Window

A simple question: I have a stateless form and want one the the buttons on the bottom to close the form's browser window.

I tried  openUrl("javascript:self.close();", "same window"); but that's not working in Chrome .