Is there a way to trigger a confirm (or anything else) if a user clicks the "x" in the browser chrome instead of using the "close window" link you provide?