Validate Reason whether he has entered something ... before the user closes form with the help of x button present at the right top corner of the form (like control box property of VB form ) with out clicking Submit button. I used the form unload event, so that it comes to another function , where i call on unload event, but there<BR>location.reload is not working and is not working.