W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2002

[www-html-editor] <none>

From: robin <robinl@mail.hz.zj.cn>
Date: Mon, 29 Apr 2002 16:32:43 +0900 (JST)
Message-Id: <20020429.163243.71111419.mimasa@w3.org>
To: <www-html-editor@w3.org>
I cannot get the initial value by "value"  when I use the  input type="file" in FORM tag. Here is my code,you can find my problem.

<html><title>example</title>
<script language="javascript">
<!--//
function init()
{ 
 document.form1.file1.value="C:\\MyeOffice\\popupmenu.txt"; 
 document.form1.file2.value="C:\\MyeOffice\\popupmenu.txt";
 alert(document.form1.file1.value); 
 alert(document.form1.file2.value);
 //C:\MyeOffice\popupmenu.txt

}
//--> 
</script>
<body onload="Javascript:init()">
C:\MyeOffice\popupmenu.txt
<form name="form1" method="post" action="up.asp" enctype="multipart/form-data">
<input type="file" name="file1" value="C:\\MyeOffice\\popupmenu.txt">
<input type="input" name="file2" value="C:\\MyeOffice\\popupmenu.txt">
<input type=submit name="submit" value="submit">
</form>
</body> 
</html>

Received on Monday, 29 April 2002 03:32:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:42 GMT