Open popup onbeforeunload

后端 未结 1 1051
眼角桃花
眼角桃花 2021-01-27 14:24

I want to open pop-up on exit (Not \"stay on page or leave\" box). I can\'t get this working. Where do I make mistake ?

 function poponload()
{
testwindow = wind         


        
相关标签:
1条回答
  • 2021-01-27 14:42

    Your code has a syntax error. You have an extraneous parenthesis after the onbeforeunload function assignment. Remove it and see if that fixes your issue.

    window.onbeforeunload = function () { 
    
    poponload();
    
    };
    
    0 讨论(0)
提交回复
热议问题