In IE6.0,
document.execCommand('SaveAs',false)
works.

解决方案 »

  1.   

    win2000 server + IE5.0 测试通过:
    <input type=button value=ok onclick="document.execCommand('SaveAs',false,'c:\\');">
      

  2.   

    IE4.0 以上都可以使用的  Minimum AvailabilityInternet Explorer 4.0 and later. 
      

  3.   

    document.execCommand('SaveAs',false,'xxx.htm')
    最后一个参数必须是文件名字,不是目录
      

  4.   

    document.execCommand('SaveAs',false,'xxx.htm')最后参数必须是文件名字!!!!
      

  5.   

    to: yuanxy(梦想鸭)
    MSDN上是这么写的
      

  6.   

    IE developement sdk:execCommand Method--------------------------------------------------------------------------------Executes a command on the current document, current selection, or the given range.SyntaxbSuccess = object.execCommand(sCommand [, bUserInterface] [, vValue])
    ParameterssCommand Required. String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. 
    bUserInterface Optional. Boolean that specifies one of the following values. false Default. Does not display a user interface. 
    true Displays a user interface, if the command supports one. 
     
    vValue Optional. Variant that specifies the string, number, or other value to assign. Possible values depend on sCommand . Return ValueReturns True if the command is successful.ResDo not invoke the execCommand method until after the page loads.The bUserInterface and vValue parameters might be required depending on the command being executed.