回覆列表
  • 1 # 小紅的甜心

    你可以寫指令碼,這是我以前寫的,你看看就知道了

    <html>

    <head>

    <meta http-equiv="Content-Language" content="zh-cn">

    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">

    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">

    <meta name="ProgId" content="FrontPage.Editor.Document">

    <title>New Page 1</title>

    </head>

    <SCRIPT LANGUAGE="javascript">

    function SaveFile()

    {

    try

    {

    var xlsWindow = window.open("","_blank","left=-1,top=-1,width=100,height=100");

    xlsWindow.document.execCommand("Saveas",true,"%homeDrive%\\new_file.txt")

    xlsWindow.close();

    }

    catch(e)

    {}

    }

    </script>

    <body>

    <form>

    <input type="button" value="button" onclick="SaveFile()" NAME="Button1">

    </form>

    </body>

    </html>

  • 中秋節和大豐收的關聯?
  • 如何鑑別銀耳釘的真假?