<script   language="javascript">  
  var   oWin;  
  function   openIt()  
  {  
  oWin=window.open("test.txt","myWin");  
  }  
  function   saveIt()  
  {
  oWin=window.open("test.txt","myWin");
  oWin.document.execCommand("saveAs",false,"c:\\2.txt")  
  }  
  </script>
</head>

<body>

<input   type="button"   name="open"   value="打开"   onclick="openIt()">
<input   type="button"   name="saveAs"   value="保存"   onclick="saveIt()">
</body>

本文使用Blog_Backup未注册版本导出,请到soft.pt42.com注册。

相关文章:

  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2021-08-27
相关资源
相似解决方案