File Input Element : File Upload : Development : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Development   » [  File Upload  ]   
 



File Input Element

Please note that some example is only working under IE or Firefox.

/*
JavaScript Bible, Fourth Edition
by Danny Goodman 

Publisher: John Wiley & Sons CopyRight 2001
ISBN: 0764533428

*/


<HTML>
<HEAD>
<TITLE>FileUpload Object</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="yourCGIURL" ENCTYPE="multipart/form-data">
File to be uploaded:
<INPUT TYPE="file" SIZE=40 NAME="fileToGo"><P>
<INPUT TYPE="button" VALUE="View Value" onClick="alert(this.form.fileToGo.value)">
</FORM>
</BODY>
</HTML>



           
       
Related examples in the same category
1.  Methods and Properties of the FileUpload Object
2.  Viewing File Dates








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.