Preventing Firefox reload confirmation

前端 未结 6 2024
一生所求
一生所求 2021-02-05 10:00

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.

6条回答
  •  广开言路
    2021-02-05 10:42

    Using

    window.location=window.location;
    

    Instead of

    location.reload();
    

    work for me.

提交回复
热议问题