You should write it like this: window.onunload = goodBye;. Also, you might consider using the onbeforeunload event in some browsers:
確定! 回上一頁