Open new window after a click event not working in Safari, Chrome

后端 未结 3 1523
广开言路
广开言路 2020-12-09 19:52

I\'m trying to open a new window like so:

$(\'#wrapper\').click(function() {
    window.setTimeout(function() {
        //alert(\'hi\');
        window.open(         


        
3条回答
  •  孤城傲影
    2020-12-09 20:26

    Another workaround
    Just open a popup with ACCEPT and CANCEL options and attach the window.open
    action to the ACCEPT button and it will works. It worked for me...

提交回复
热议问题