Is there anyway of closing a single browser window without getting the "Are you sure?" prompt?

window.close() seems to give an alert.