Preventing Firefox reload confirmation

前端 未结 6 2023
一生所求
一生所求 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:52

    window.opener.location.href = window.opener.location;
    

    I've found the decision here

    (Tested on Firefox 32 and Chrome 38 successfully.)

提交回复
热议问题