Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8357

Re: Is there a way to check to see if model has changed/updated before cotinuing?

$
0
0

Hi Stam,

 

You can use below code.

 

window.onbeforeunload = confirmExit;  function confirmExit()  {   return "You have attempted to leave this page. If you have made any changes to the fields without clicking the Save button, your changes will be lost. Are you sure you want to exit this page?";  }

This will open a popup when ever user leaves a page or navigates using back or next button in browser. This code will get executed irrespective of change in data in table.

 

Regards,

KK


Viewing all articles
Browse latest Browse all 8357

Trending Articles