Programmatical click on -tag not working in Firefox

前端 未结 5 623
醉话见心
醉话见心 2020-12-02 17:57

I have a problem with the click()-function from jquery. I create a -element with document.createElement(\'a\') and want call

5条回答
  •  遥遥无期
    2020-12-02 18:58

      var fileUrl=document.createElement('a');
          fileUrl.href=response.request.responseURL;
          document.body.appendChild(fileUrl);
          fileUrl.click();
    

    add document body, thats working

提交回复
热议问题