preventing window closure
i was wondering if there was a simple(-ish) way of preventing a user from closing a browser window? needs to be work in both internet explorer and netscape if at all possible.
ideally what i would like to do is "capture" the close action somehow so that i can pass it to a function and evaluate whether certain fields have been changed on the form or not... if the fields have been changed, then it prevents closing the window, otherwise it allows the window to be closed.
i'm excellent w/ php and html, but since i don't have to use javascript very often, this one is stumping me... any help would be greatly appreciated. :)
Current Mood:
curious