faqts : Computers : Programming : Languages : Html

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 13 people (69%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

HTML: Input: Box: Filename: Create: How to create a filename input in HTML?

Aug 23rd, 2006 15:41
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 07 September 2004 - 08:46 pm ------------------

HTML: Input: Box: Filename: Create: How to create a filename input in 
HTML?

---

--- cut here: begin --------------------------------------------------

<HTML>
 <INPUT
   TYPE="FILE"
 >
   Please choose a file
 </INPUT>
</HTML>

---
---

e.g.

<!-------------------------------------------------------------------->
<HTML>
<!-------------------------------------------------------------------->
<FORM
  NAME="form1"
 >
<!-------------------------------------------------------------------->
<INPUT
  NAME="file1"
  TYPE="file"
>
</INPUT>
<!-------------------------------------------------------------------->
<BR/>
<!-------------------------------------------------------------------->
<BUTTON
  NAME="button1"
  ONCLICK = ' ;
   PROCFileGetFilename( document.form1.file1.value );
  '
>
View filename
</BUTTON>
<!-------------------------------------------------------------------->
</FORM>
<!-------------------------------------------------------------------->
<SCRIPT>
function PROCFileGetFilename( s ) {
 alert( s );
}
</SCRIPT>
<!-------------------------------------------------------------------->
</HTML>
<!-------------------------------------------------------------------->

--- cut here: end ----------------------------------------------------

===

Internet: see also:

---

JavaScript: File: How to write or read to a file? [load / save]
http://www.faqts.com/knowledge_base/view.phtml/aid/41232

----------------------------------------------------------------------