Detect when user clicks link, but aborts

后端 未结 6 1750
暖寄归人
暖寄归人 2020-12-07 03:15

I am working on a Web CMS. When the user clicks on a link to move to a different page, or submits a form, I want a "please wait" animated GIF to show up in the top

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 03:32

    window.onabort seems to be a promising solution but at this time (2020-05-02) it is marked as an experimental technology supported by Chrome and Edge only. Besides, it seems is designed for handling abort of loading existing page or resources rather than next page.

提交回复
热议问题