execcommand("SaveAs",null,"file.csv") is not working in IE8
- by anbu
var doc = w.docment;
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");
}
not working in IE 8
but woks in IE 6
what is the problem ? it is alerting "cannot be saved"
help me !!! advance thanks