How can I prevent [removed] from being triggered by [removed] href links in IE?

前端 未结 6 1753
清酒与你
清酒与你 2021-01-30 05:24

I\'m building a fail safe for my form that is going to warn users that if they leave the page their form data will be lost (similar to what gmail does).

window.         


        
6条回答
  •  情书的邮戳
    2021-01-30 06:21

    If the user mouse is on a link and they trigger refresh page with the keyboard or activate a link with the keyboard, the prompt won't show up. So Dr.Molle approach will not work in this rare case.

提交回复
热议问题