希望有人能提供帮助.只是无法在没有地址栏的Firefox中打开新窗口.IE可以正常使用以下代码
window.open('/pageaddress.html', 'winname',
directories=0,titlebar=0,toolbar=0,location=0,status=0,
menubar=0,scrollbars=no,resizable=no,
width=400,height=350);
Run Code Online (Sandbox Code Playgroud)
我需要为所有浏览器制作
var doc = w.document;
doc.open('application/CSV','replace');
doc.charset = "utf-8";
doc.write("all,hello");
doc.close();
if(doc.execCommand("SaveAs",null,"file.csv")) {
window.alert("saved ");
}else {
window.alert("cannot be saved");
}
Run Code Online (Sandbox Code Playgroud)
不在IE 8中工作
但在IE 6中炒作
问题是什么 ?它警告"无法保存"
帮我 !!!提前谢谢