View Full Version : Is there an event that captures user clicking outside a viewport region?

24 May 2011, 12:24 PM
I have a viewport, where the center region has the form. I also have the north, west and south regions defined. I need a functionality where if the user clicks anywhere outside the form (meaning the user is leaving the form without saving), then I need to show a message to the user that he needs to save the info before leaving the form. I cant use windows.onunload since it works on unload of the complete window. Any ideas which event I can use?