Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input type file readonly?

Status
Not open for further replies.

smnetto

Programmer
Nov 17, 2000
38
0
0
BR
How to prevent users from typing the filename into the text box of an input type file tag, allowing only the browse button to select the file? Any ideas?

 
Try:
<input type=file name=wf_test readonly>

As far as I know, readonly isn't supported in NetScape though.
 
The file input is readonly for you to put a value, only the client can select a file, you can't spécify anything. This protect the client from a site who wants to graba file in a computer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top