JavaScript DHTML/Form Control/Form File Input

Материал из Web эксперт
Перейти к: навигация, поиск

file Input Element

   
<html> 
<head> 
<title>FileUpload Object</title> 
</head> 
<body> 

<form method="POST" action="" enctype=""> 
File to be uploaded: 
<input type="file" size="40" name="fileToGo" /> 
<input type="button" value="View Value" onclick="alert(this.form.fileToGo.value)" /></p> 
</form> 
</body> 
</html>