I'm trying to set up my editing or creation webpages so that when I want to navigate to another page or load a link without saving the content, a warning message is displayed.

Someone can help me?


Nuno Verdasca

I guess you would need to add javascript to accomplish that. This link might help you with that:


Hi Nuno Miguel Verdasca,

Take a look into this component and also this page. The component is based on the jQuery Plugin, but a little bit outdated.

And don't forget that now the browsers do not support custom messages on the beforeunload event.