the back button is just a nvigation request. you can not catch the url in
client script (unless you wrote an active/x control that hooked into the
browser and caught the navigation events). You are on the correct track. you
want to use the unload event. on all valid postbacks from the page, you want
to set a flag the unload event checks before processing the cleanup logic.
also if your site does not support the back button, then set the pages to
not be cached, and the browser will refetch them, giving the server a chance
to detect the back request.
-- bruce (sqlwork.com)
"mac" <ma*@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
I am building web applcation using ASP.NET on IE 6.0. The requirement is
to
show a popup when user clicks back button and perform clean up operation.
Does anybody knows how to do it. I am using xmlhttp to hit to server by
checking event.clientY < 0. The problem occurs when the user selects
dropdownlist value from back button. Secondly i tried coding on
body.unload
event but it fires popup on refresh and other events as well which is not
desirable.
Any help is appreciated.