I\'m displaying certain records in an editable table. The user when attempts to reload the table while editing a record a pop up comes warning the record about the unsaved data.
Using
window.location=window.location;
Instead of
location.reload();
work for me.