Hi Guys,

How do u do this?
I'v got a page loaded and showing. When I'm closing
the window or moving to another page, I should
check for some values and based on the values
the page should not be unloaded or the window
should not be closed.

I want a functionality similar to the queryunload event
in VB where u can prevent a form from closing if
u return a value to the CANCEL parameter.

Can u guys help me out with this ?