execcommand("SaveAs",null,"file.csv") is not working in IE8
Posted
by anbu
on Stack Overflow
See other posts from Stack Overflow
or by anbu
Published on 2010-03-25T13:18:56Z
Indexed on
2010/03/25
13:23 UTC
Read the original article
Hit count: 723
JavaScript
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
© Stack Overflow or respective owner