0
我有两个不同的window.open函数调用在Microsoft边缘都没有:MS边缘 - window.open给出错误“该操作已被用户取消。”
var canvas = document.getElementById("diagramCanvas");
var imgUrl = canvas.toDataURL("image/png");
window.open(imgUrl);
和
window.open('data:application/vnd.ms-excel,' + encodeURIComponent($('#results').html()));
他们都产生了错误:
操作已被取消用户。
这看起来像一个弹出窗口拦截器,所以我禁用边缘弹出窗口阻止两者还是失败,而与真实的URL讨厌的弹出窗口就弹出:http://www.popuptest.com/
有没有一种方法,使Edge中打开的JavaScript生成的文件在新窗口中?