OK, so why would the page/form refresh while still being "dirty"? I can see the user clicking the refresh button, but warn the user then too, because I would assume that the refresh could refresh the page to show the older data values, and therefore lose your unsaved data.
Meaning I am thinking the way it is operating is the way
you should want it. But I could be clueless, it wouldn't be the first time.
Mark