<input type=button onclick="window.location='file:///c:'"><input type=file>

解决方案 »

  1.   

    <a href="file:///c:\">c:\</a>
      

  2.   

    <input type=file name=file1>
      

  3.   

    <HTML>
    <HEAD>
    <TITLE>打开文件</TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    // Thank you Larry McClurg for the cross-browser fix
    function whatFile() {
    window.location= 'file:///' + document.form1.cmuds.value;
    }
    //  End -->
    </script></HEAD><BODY BGCOLOR=#ffffff vlink=#0000ff><BR>
    <center>
      <BR>
      打开文件 <BR>
    <BR>
      <!-- Demonstration -->
      <form name=form1>
    <input type=file name="cmuds">
    <input type=button onClick="whatFile()" value="Open File">
    </form>
    <P>
    <P>
      <a name="source"></a> 
      <!--content_stop-->
      <p>&nbsp;
      <center>
      </center></center></body></html>
      

  4.   

    <input type=file name=d>