By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

file tag problem

P: 2,476
i have a file tag in html page..

but i want the text where the selected file to placed will be readonly...

i want to stop the user to enter the file name manually..

just he or she can enter the file by selecting the file from the file browser

plz help me out ....

thanx in advance
Feb 13 '07 #1
Share this Question
Share on Google+
5 Replies

Expert 5K+
P: 7,435
This has nothing to do with html/css. Visit one of the programming language boards.
Feb 13 '07 #2

P: 2,476
thanx for ur reply

really it is not possible in html by setting it readonly or anything else
Feb 13 '07 #3

Expert 100+
P: 1,892
Are you trying to get a file?
<input type="file" name="SomeFile" class="SomeFile" />
Feb 13 '07 #4

P: 2,476
thanx for ur reply

can u give me css format of somefile which u metioned .....................

class = "somefile"
Feb 14 '07 #5

P: 2,476
finally i managed to do so ..

i tried the code ...

<input type = file name = "" onkeypress = "return false" onkeydown = "return false" onkeyup = "return false">

that stops the user to enter the file location manually ..
only user can enter the file name by browsing
Feb 14 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.