I am trying to delete cookies after a person leaves the page or refreshes. I am pretty new at this. Anyone got a working script?
window.onbeforeunload = 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?";