Web Analytics Made Easy -
StatCounter question about SAVEAS dialog of IE - CodingForum

Announcement

Collapse
No announcement yet.

question about SAVEAS dialog of IE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • question about SAVEAS dialog of IE

    in IE6.0, I executed document.execCommand("saveAs") to open
    a SAVEAS dialog to save my page, my question is , can I specify
    a default saving type or a name in my JS code for that page, for instance, a type like .CSV or a name like "test.csv"?
    thank U
    Last edited by yao_jw; Feb 24, 2004, 02:45 AM.

  • #2
    var ret=document.execCommand("SaveAs",true,"test.csv");
    if (ret){
    alert("You have successfully saved the file locally.");
    }

    More info here
    Last edited by glenngv; Feb 24, 2004, 02:51 AM.
    Glenn
    vBulletin Mods That Rock!

    Comment


    • #3
      thank U! it works

      Comment

      Working...
      X