Internet Explorer calling [removed] on window.open and AJAX calls

后端 未结 8 1545
刺人心
刺人心 2021-01-04 11:21

Ok, I have spent a while on this problem and this is what I have gathered:

  1. If you make an AJAX call in IE7 and you have a window.onbeforeunload function spe

8条回答
  •  一向
    一向 (楼主)
    2021-01-04 11:51

    Another and probably simpler option is to return false when you open the popup:

    my link
    

    This seems to stop IE from thinking you're leaving the page and triggering the event. All the other options weren't particularly viable for me.

提交回复
热议问题